#include "petscts.h" PetscErrorCode TSPseudoSetVerifyTimeStep(TS ts,PetscErrorCode (*dt)(TS,Vec,void*,PetscReal*,PetscBool*),void *ctx)Logically Collective on TS
ts | - timestep context | |
dt | - user-defined function to verify timestep | |
ctx | - [optional] user-defined context for private data for the timestep verification routine (may be NULL) |
func (TS ts,Vec update,void *ctx,PetscReal *newdt,PetscBool *flag);
update | - latest solution vector | |
ctx | - [optional] timestep context | |
newdt | - the timestep to use for the next step | |
flag | - flag indicating whether the last time step was acceptable |