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

Pierre Barbier de Reuille pierre.barbierdereuille at gmail.com
Mon Feb 9 04:00:04 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 TSGetSolution returns the last
valid solution). 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/e6cd96a8/attachment.html>


More information about the petsc-users mailing list