[petsc-users] SNES-norm is zero all the time

Jed Brown jed at jedbrown.org
Wed Feb 3 11:46:35 CST 2021


Sepideh Kavousi <skavou1 at lsu.edu> writes:

> I am not running an specific example. Attached is  my code. and when I wun with
> ./step5.out -snes_monitor -snes_fd_color -ts_monitor -snes_converged_reason -pc_type lu
>
> it seems it does not solve anything because the output is like:
>
>     0 SNES Function norm 0.000000000000e+00
>   Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 0
> 1 TS dt 0.005 time 0.005

Check your FormFunction for why af[][] is zero. I see

  aF[j][j].vx

but you'll need to set at all the grid points, i.e., aF[j][i].vx and aF[j][i].vy.


More information about the petsc-users mailing list