16 #define __FUNCT__ "TransferVecFromPETSc" 34 VecGetArrayRead(Y,&Yarr);
35 std::vector<int> index(sim[sim_idx].solver.ndims,0);
44 VecRestoreArrayRead(Y,&Yarr);
46 PetscFunctionReturn(0);
Structure defining a simulation.
Some basic definitions and macros.
INLINE int ArrayCopynD(int, const double *, double *, int *, int, int, int *, int)
Structure containing the variables for time-integration with PETSc.
int TransferVecFromPETSc(double *const u, const Vec Y, void *ctxt, const int sim_idx, const int offset)
Contains macros and function definitions for common array operations.
Contains structure that defines the interface for time integration with PETSc (https://petsc.org/release/)