|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Copy from PETSc vector to HyPar array. More...
#include <stdlib.h>#include <vector>#include <basic.h>#include <arrayfunctions.h>#include <simulation_object.h>#include <petscinterface_struct.h>Go to the source code of this file.
Macros | |
| #define | __FUNCT__ "TransferVecFromPETSc" |
Functions | |
| int | TransferVecFromPETSc (double *const u, const Vec Y, void *ctxt, const int sim_idx, const int offset) |
Copy from PETSc vector to HyPar array.
Definition in file TransferFromPETSc.cpp.
| #define __FUNCT__ "TransferVecFromPETSc" |
Definition at line 16 of file TransferFromPETSc.cpp.
| int TransferVecFromPETSc | ( | double *const | u, |
| const Vec | Y, | ||
| void * | ctxt, | ||
| const int | sim_idx, | ||
| const int | offset | ||
| ) |
Copy data from a PETSc vector (used by PETSc time integrators, and with no ghost points) to a HyPar::u array (with ghost points).
| u | HyPar::u type array (with ghost points) |
| Y | PETSc vector |
| ctxt | Object of type PETScContext |
| sim_idx | Simulation object index |
| offset | Offset |
Definition at line 23 of file TransferFromPETSc.cpp.