[petsc-users] Setting step acceptance criteria and/or domain validity using TS module

Pierre Barbier de Reuille pierre at barbierdereuille.net
Mon Feb 9 03:57:12 CST 2015


Hello,

Looking for methods to ensure negative values are rejected, I found this in
the archives:

http://lists.mcs.anl.gov/pipermail/petsc-users/2014-June/021978.html

The answer gives two options:
 1 - Set a function for the step acceptance criteria
 2 - Set a domain violation for the function

However, I cannot find any information on how to do either things.

For (1), I tried to use TSSetPostStep, but I couldn't figure out how to
retrieve the current solution (it seems the vector in TSGetSolution is not
yet set). For (2), I am not even sure where to start.

Thanks,

Pierre Barbier de Reuille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150209/fac41c3c/attachment.html>


More information about the petsc-users mailing list