[petsc-users] Abort SNES Mid-iteration

Hongrui Yu yuhongrui at utexas.edu
Wed Jul 5 19:54:55 CDT 2023


Hello PETSc users,

 

I'd like to use the error handling mechanism to abort SNES mid-iteration if
certain quantities become nonphysical by calling SETERRQ() inside
FormFunction() or FormJacobian(). I'm wondering if users can define their
own error handler routines to use with PetscPushErrorHandler() and
PetscPopErrorHandler()? I'm also open to any suggestion on better ways to
quit SNES mid-iteration.

 

Thanks in advance for any help or advice!

 

Hongrui

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230705/e426f725/attachment.html>


More information about the petsc-users mailing list