[petsc-users] Change SNES/TS setting from inside context

Jed Brown jedbrown at mcs.anl.gov
Thu Oct 27 09:20:22 CDT 2011


On Thu, Oct 27, 2011 at 08:18, behzad baghapour
<behzad.baghapour at gmail.com>wrote:

> So, I should define a monitor context "mon" and a function like "Monitor"
> which I want to change whatever I wand during each SNES iteration then pass
> it to the function SNESMonitorSet<http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/SNES/SNESMonitorSet.html#SNESMonitorSet>(
> snes, Monitor, &mon, 0 );
>

Yes, put whatever application-specific information in your monitor context
and have it decide how to reconfigure the KSP or PC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111027/e526e966/attachment.htm>


More information about the petsc-users mailing list