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 TransferVecToPETSc(const double *const, Vec, void *, const int, const int)
Structure defining a simulation.
std::vector< double > stage_times
int(* NonlinearInterp)(double *, void *, void *, double, int(*)(double *, double *, int, void *, double))
Some basic definitions and macros.
int(* ApplyIBConditions)(void *, void *, double *, double)
int(* FFunction)(double *, double *, int, void *, double)
Structure containing all solver-specific variables and functions.
PetscErrorCode PetscPostStage(TS ts, PetscReal stagetime, PetscInt stageindex, Vec *Y)
Structure containing the variables for time-integration with PETSc.
int(* PostStage)(double *, void *, void *, double)
Structure of MPI-related variables.
int TransferVecFromPETSc(double *const, const Vec, void *, const int, const int)