<div dir="ltr"><div>Mark</div><div><br></div><div>monitors are not supposed to change the TS. You can think at monitors being 'const' methods of the TS. Also, TSMonitor is called at the beginning of each step , see here <a href="https://gitlab.com/petsc/petsc/-/blob/master/src/ts/interface/ts.c#L4169">https://gitlab.com/petsc/petsc/-/blob/master/src/ts/interface/ts.c#L4169</a></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 18 feb 2021 alle ore 15:16 Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> TSSetConvergedReason(ts,TS_CONVERGED_USER);<br><div><br></div><div>does not seem to stop the iteration in a user monitor function. I have verified that it works from a post step method. Is this intentional?</div><div><br></div><div>Mark</div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Stefano</div>