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>
