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);
int TransferVecFromPETSc(double *const, const Vec, void *, const int, const int)
INLINE int ArrayCopynD(int, const double *, double *, int *, int, int, int *, int)
Contains structure that defines the interface for time integration with PETSc (https://petsc.org/release/)
Structure containing the variables for time-integration with PETSc.
Structure defining a simulation.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.