# PETSC ERROR: Petsc has generated inconsistent data

**URL:** <https://community.geodynamics.org/t/petsc-error-petsc-has-generated-inconsistent-data/2162>\
**Category:** PyLith\
**Created:** [January 7, 2022, 3:32am UTC](https://community.geodynamics.org/t/petsc-error-petsc-has-generated-inconsistent-data/2162 "2022-01-07T03:32:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luxiaokong](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@luxiaokong](https://community.geodynamics.org/u/luxiaokong)\
**Post date:** [January 7, 2022, 3:32am UTC](https://community.geodynamics.org/t/petsc-error-petsc-has-generated-inconsistent-data/2162/1 "2022-01-07T03:32:43Z")

</div>

Dear Pylith team,

I have encountered the following mistake. I don’t know how to solve it. Any suggestions or help will be greatly appreciated.

 ![2022-01-07 11-27-26 的屏幕截图 (2)](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/1X/4b75e802a00224d6c1eea7537688cd2939cfb6a3.png)

Nick

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [January 7, 2022, 4:00am UTC](https://community.geodynamics.org/t/petsc-error-petsc-has-generated-inconsistent-data/2162/2 "2022-01-07T04:00:06Z")

</div>

The code is checking the topology of the mesh after creating the cohesive cells for fault “fault\_southern\_tianshan”, and it found an inconsistency. This suggests there is something wrong with how the cohesive cells were created. Suggestions for how to fix this:

- Check that you mark all interior buried edges of faults and set the `edge` property for the fault to the name of the corresponding nodeset.
- Check that the fault surface (as defined by the vertices in the fault node set) is simply connected.
- Make sure no cell has all of its vertices on the fault.
- Check the mesh quality. The ideal condition number is 1.0. You should aim for all cells having a condition number less than 2.0. A condition number above 5.0 may lead to various problems.
