[petsc-users] Recommended workflow for continuing a TSSolve after making a change to mesh topology
Stefano Zampini
stefano.zampini at gmail.com
Wed Oct 22 10:09:05 CDT 2025
You can use TSSetResize, see
https://urldefense.us/v3/__https://petsc.org/release/manualpages/TS/TSSetResize/__;!!G_uCfscf7eWS!bKPHXAQZ-u_toOCSRqHnaw4ViCwJhsm3ERuCVrQrcwQ8FVPgv9MoRun-H4K1_bCnB23anEzC8X35rfKJ0STCq-3Dgd_YIAM$
see https://urldefense.us/v3/__https://petsc.org/release/src/ts/tutorials/ex11.c.html__;!!G_uCfscf7eWS!bKPHXAQZ-u_toOCSRqHnaw4ViCwJhsm3ERuCVrQrcwQ8FVPgv9MoRun-H4K1_bCnB23anEzC8X35rfKJ0STCq-3DyPOLKps$ or
https://urldefense.us/v3/__https://petsc.org/release/src/ts/tutorials/ex45.c.html__;!!G_uCfscf7eWS!bKPHXAQZ-u_toOCSRqHnaw4ViCwJhsm3ERuCVrQrcwQ8FVPgv9MoRun-H4K1_bCnB23anEzC8X35rfKJ0STCq-3DuPkWW0o$ for examples that
use a DM
Il giorno mer 22 ott 2025 alle ore 15:40 Ross Williams <
Ross.Williams at glasgow.ac.uk> ha scritto:
> Hello,
>
> I am asking for guidance and/or clarification on how one should best
> handle changes to the mesh topology within TSSetPreStep of a TSSolve.
>
> Out current methodology after making the change is:
>
> 1. TSReset(ts);
> 2. DMSetUp(dm);
> 3. TSSetSolution(ts, sol);
> 4. TSSetDM(ts, dm);
> 5. TSSetUp(ts);
>
>
> I have not found any relevant examples in the documentation so if there is
> one or an example in another code base, please feel free to direct me
> towards it.
>
> Kind regards,
> Ross.
>
> ------------------------------
> Ross Williams PhD
>
> Research Associate
>
> Glasgow Computational Engineering Centre (GCEC)
>
> E: ross.williams at glasgow.ac.uk
>
> W: https://urldefense.us/v3/__https://www.gla.ac.uk/schools/engineering/staff/rosswilliams/__;!!G_uCfscf7eWS!bKPHXAQZ-u_toOCSRqHnaw4ViCwJhsm3ERuCVrQrcwQ8FVPgv9MoRun-H4K1_bCnB23anEzC8X35rfKJ0STCq-3DZn5ycuo$
> <https://urldefense.us/v3/__https://www.gla.ac.uk/schools/engineering/staff/rosswilliams/__;!!G_uCfscf7eWS!dIt7_WjFSNIz80F0_FJan8iSDDhDRHEYaqhuBa0vDHLsWHctjh82s3y-z2TLy8E7XoIghMWJ4RMxZDJzoSn2XhKxkoKYazsSh50$>
>
> Pearce Lodge,
>
> James Watt School of Engineering,
>
> University of Glasgow,
>
> G12 8QQ,
>
> Glasgow,
>
> United Kingdom.
>
--
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251022/cf7b0db3/attachment-0001.html>
More information about the petsc-users
mailing list