xolotl/solver/src/monitor/Monitor.cpp
/**
 * This is a monitoring method set the previous time to the time. This is needed
 * here because multiple monitors need the previous time value from the previous
 * timestep. This monitor must be called last when needed.
 */
This is a monitoring method set the previous time to the time. This is needed
here because multiple monitors need the previous time value from the previous
timestep. This monitor must be called last when needed.
This is a monitoring method set the previous time to the time . This is needed here because multiple monitors need the previous time value from the previous timestep . This monitor must be called last when needed .
PetscErrorCode
monitorTime(TS, PetscInt, PetscReal time, Vec, void*)
{
	PetscFunctionBeginUser;
	auto& solverHandler = PetscSolver::getSolverHandler();
	solverHandler.setPreviousTime(time);
	PetscFunctionReturn(0);
}
PetscErrorCode monitorTime ( TS , PetscInt , PetscReal time , Vec , void * ) { PetscFunctionBeginUser ; auto & solverHandler = PetscSolver :: getSolverHandler ( ) ; solverHandler . setPreviousTime ( time ) ; PetscFunctionReturn ( 0 ) ; }
This is a monitoring method set the previous time to the time.
This is a monitoring method set the previous time to the time .
// Get the solver handler // Set the previous time to the current time for the next timestep