xolotl/solver/src/monitor/Monitor.cpp
/**
 * This is a monitoring method that will compute the total fluence
 */
This is a monitoring method that will compute the total fluence
This is a monitoring method that will compute the total fluence
PetscErrorCode
computeFluence(TS, PetscInt, PetscReal time, Vec, void*)
{
	PetscFunctionBeginUser;
	auto& solverHandler = PetscSolver::getSolverHandler();
	auto fluxHandler = solverHandler.getFluxHandler();
	double dt = time - solverHandler.getPreviousTime();
	fluxHandler->incrementFluence(dt);
	PetscFunctionReturn(0);
}
PetscErrorCode computeFluence ( TS , PetscInt , PetscReal time , Vec , void * ) { PetscFunctionBeginUser ; auto & solverHandler = PetscSolver :: getSolverHandler ( ) ; auto fluxHandler = solverHandler . getFluxHandler ( ) ; double dt = time - solverHandler . getPreviousTime ( ) ; fluxHandler -> incrementFluence ( dt ) ; PetscFunctionReturn ( 0 ) ; }
This is a monitoring method that will compute the total fluence
This is a monitoring method that will compute the total fluence
// Get the solver handler and the flux handler // The length of the time step // Increment the fluence with the value at this current timestep