[petsc-users] TSSetExactFinalTime Behavior Without TSAdapt

Hong Zhang hongzhang at anl.gov
Sun Jun 5 23:56:18 CDT 2016


Did you call TSSetFromOptions() right before TSSolve()? I have seen similar errors when TSSetFromOptions() is not used. 

Hong

> On Jun 3, 2016, at 8:23 AM, Paul Urbanczyk <gomer at stanford.edu> wrote:
> 
> Hello,
> 
> I recently upgraded to the latest version of PETSc (3.7.1) from the git repository.
> 
> Running my code gave me an error message about TSSolve being in the wrong state and needing to call TSSetExactFinalTime.
> 
> I added this function call with TS_EXACTFINALTIME_STEPOVER, but when I re-ran my code, I got a seg fault and error messages pointing to TSAdaptChoose.
> 
> After fiddling around for a while, I found that I now needed to explicitly set the time step adaptation through TSAdaptSetType.
> 
> Can anyone confirm that this is so? If so, it might be helpful to note that in documentation or error messages somewhere.
> 
> Thanks,
> 
> Paul
> 
> 



More information about the petsc-users mailing list