# SNESSolve has not converged and Slip sign

**URL:** <https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915>\
**Category:** PyLith\
**Created:** [November 20, 2019, 8:50am UTC](https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915 "2019-11-20T08:50:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvinakkuncoro](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@alvinakkuncoro](https://community.geodynamics.org/u/alvinakkuncoro)\
**Post date:** [November 20, 2019, 8:50am UTC](https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915/1 "2019-11-20T08:50:20Z")

</div>

Dear everyone,

I have 2 questions.

1. This is a basic question but I need to make sure about the slip sign. Following the manual book page 93-fig 6.2, positive value refers to left lateral, reverse, and fault opening slip. But I just realize in the examples/2d/subduction, fault\_slip\_coseismic.spatialdb file has negative value for the slip. Which indicates slip for normal fault. I check the finite fault data from Hayes, the slip is in positive value. I also check the fault\_slabtop\_coseismic.spatialdb in the examples/3d/subduction/spatialdb, the slip is also in positive value which indicates reverse slip. Which one is right?

2. I am currently learning to simulate spontaneous rupture using step5 in 2d/subduction. I use my own geometry and obtain an error as :

Nonlinear solve did not converge due to DIVERGED\_FUNCTION\_COUNT iterations 3022  
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------  
[0]PETSC ERROR:  
[0]PETSC ERROR: SNESSolve has not converged

How can I solve this issue?

Thank you for your assistances.

Best Regards,  
Alvina

---

<div class="post-metadata">

**Author:** ![willic3](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/willic3/32/598_2.png) [@willic3](https://community.geodynamics.org/u/willic3)\
**Post date:** [November 20, 2019, 5:52pm UTC](https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915/2 "2019-11-20T17:52:10Z")

</div>

Dear Alvina,

1. If you look at the labels for the parameters in the 2D spatialdb, you will see that the slip is labeled as ‘final\_slip\_left\_lateral’. In 2D, we only have ‘left-lateral’ slip, even if your fault is reverse or normal. This can be a bit confusing at times, but it did not make sense to have 3 slip components for 2D.

2. This is difficult to answer without knowing more about your problem setup. The first question is what sort of quality does your mesh have? Ideally, you would like a maximum condition number of 2 or less for the cells in your mesh, particularly the cells adjacent to the fault.

Cheers,  
Charles

---

<div class="post-metadata">

**Author:** ![josimar](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josimar](https://community.geodynamics.org/u/josimar)\
**Post date:** [November 21, 2019, 9:50pm UTC](https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915/3 "2019-11-21T21:50:25Z")

</div>

@albarodriguez,

If you set

```
snes_max_funcs = 100000

```

for the PETSC parameters, it can solve your problem related to `DIVERGED_FUNCTION_COUNT`, although there could be other issues related to your mesh and problem set up as indicated by @willic3. See the solution here: [https://lists.mcs.anl.gov/pipermail/petsc-users/2018-September/036258.html](https://lists.mcs.anl.gov/pipermail/petsc-users/2018-September/036258.html)

---

<div class="post-metadata">

**Author:** ![zhangj](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zhangj](https://community.geodynamics.org/u/zhangj)\
**Post date:** [December 16, 2019, 7:01am UTC](https://community.geodynamics.org/t/snessolve-has-not-converged-and-slip-sign/915/5 "2019-12-16T07:01:32Z")

</div>

Dear Alvina,  
Recently,I am trying to simulate spontaneous rupture by RateStateAgeing,using my own 3D geometry model,but a PETSC error " SNESSolve has not converged" is always reported,How can I solve the problem? Thank you.
