[petsc-users] [TimeStepping] Eventhandler

Smith, Barry F. bsmith at mcs.anl.gov
Sat Feb 2 19:43:51 CST 2019



> On Feb 2, 2019, at 12:08 PM, Moritz Huck via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi,
> I am trying to use SetEventHandler.
> I hav eencountered two "problems":
> 
> 1. after an event is encountered the next time step is needlessly small (h=1e-6), even if a don't change anything in the function (for testing).
> 
> 
> 2. the integration does not continue at the event encounter
> e.g. my eventfunction is g(t,u)=t-1,
> the event is found in the step from t= 0.9 to 1.1 at tevent=1
> but the next step is not 1+dt but it is 1.1 + dt
> I would expect the next step to be 1.+dt

     Hmm, this sounds like it could be an error. Could you send us a simple code that exhibits it?

   Thanks

   Barry

> 
> Best Regards,
> Moritz
> 	



More information about the petsc-users mailing list