# Runtime error using finer mesh

**URL:** <https://community.geodynamics.org/t/runtime-error-using-finer-mesh/986>\
**Category:** PyLith\
**Created:** [January 3, 2020, 10:40pm UTC](https://community.geodynamics.org/t/runtime-error-using-finer-mesh/986 "2020-01-03T22:40:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![albarodriguez](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@albarodriguez](https://community.geodynamics.org/u/albarodriguez)\
**Post date:** [January 3, 2020, 10:40pm UTC](https://community.geodynamics.org/t/runtime-error-using-finer-mesh/986/1 "2020-01-03T22:40:23Z")

</div>

Hi,

I am getting the following error “RuntimeError: Determinant of Jacobian (7.5968e-07) for cell 28 is smaller than minimum permissible value (1e-06)!  
The two most likely causes of this are highly distorted cells and nondimensionalization with a length scale that is much larger than the dimensions of the cells.”

I have run into this error in the past by not scaling my mesh from meters to kilometers but that is not the issue this time. The only change from my usual mesh is that I am using a much finer element size on the fault. I have a mesh that is 3x3 kilometers with a 1km long fault in the middle. I am using a tetrahedral element shape. For my code, I am using a very simple variant of step 4 in hex8 that only considers an elastic upper crust.

Are there alternative issues with the mesh or the code that may be causing this error? Thank you for your help.

Alba

---

<div class="post-metadata">

**Author:** ![knepley](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/knepley/32/91_2.png) [@knepley](https://community.geodynamics.org/u/knepley)\
**Post date:** [January 3, 2020, 11:14pm UTC](https://community.geodynamics.org/t/runtime-error-using-finer-mesh/986/2 "2020-01-03T23:14:33Z")

</div>

The problem is the same. Your nondimensionalization scale is too large for your smallest element size. We do this so that we do not lose precision. Just adjust the scale to be smaller and it will run.

Thanks,

Matt

---

<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 6, 2020, 8:12pm UTC](https://community.geodynamics.org/t/runtime-error-using-finer-mesh/986/4 "2020-01-06T20:12:59Z")

</div>

Adjust the length scale to be your nominal cell size (the default is 1.0 km).

Example of setting the length scale to 10 m:

```auto
[pylithapp.problem.normalizer]
length_scale = 10.0*m

```

To see the current values:

```auto
pylith YOUR_SETTINGS --problem.normalizer.help-properties

```
