[petsc-users] Refinement on TS

Smith, Barry F. bsmith at mcs.anl.gov
Wed Jul 4 12:11:18 CDT 2018


   Please send your code that does this so we can debug. We have never done this before so there may be issues in TSReset()

   Barry


> On Jul 4, 2018, at 12:02 PM, Amir <mhbaghaei at mail.sjtu.edu.cn> wrote:
> 
> 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);
> 



More information about the petsc-users mailing list