[petsc-users] Refinement on TS

Amir mhbaghaei at mail.sjtu.edu.cn
Wed Jul 4 12:02:25 CDT 2018


Hello
To make a refinement on the solution in TS, what is a good procedure to implement?
I firstly, find the refined solution and built the refined DM and trying to reset the TS using new DM and new solution vector. However, I found it is not a correct way and working. Could you please help me on this? Thanks very much for your time answering me.

TSReset(ts);
VecDestroy(&X);

TSSetDM(ts,dm_refine);

TSSetSolution(ts,user->X);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180705/88011e85/attachment.html>


More information about the petsc-users mailing list