13 #define __FUNCT__ "PetscPostStage"
26 TSGetApplicationContext(ts,&context);
28 fprintf(stderr,
"Error in PetscPreTimeStep: Null context!\n");
32 int nsims = context->
nsims;
35 TSGetType(ts,&time_scheme);
37 TSGetTimeStep(ts,&(context->
dt));
43 for (
int ns = 0; ns < nsims; ns++) {
56 if (!strcmp(time_scheme,TSARKIMEX)) {
66 solver->
PostStage(solver->
u,solver,mpi,stagetime);
73 PetscFunctionReturn(0);
int TransferVecFromPETSc(double *const, const Vec, void *, const int, const int)
int(* FFunction)(double *, double *, int, void *, double)
int(* NonlinearInterp)(double *, void *, void *, double, int(*)(double *, double *, int, void *, double))
std::vector< double > stage_times
int(* PostStage)(double *, void *, void *, double)
int TransferVecToPETSc(const double *const, Vec, void *, const int, const int)
Structure containing the variables for time-integration with PETSc.
Structure defining a simulation.
Some basic definitions and macros.
Structure of MPI-related variables.
int(* ApplyIBConditions)(void *, void *, double *, double)
Structure containing all solver-specific variables and functions.
PetscErrorCode PetscPostStage(TS, PetscReal, PetscInt, Vec *)