PISM, A Parallel Ice Sheet Model
stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
|
#include <DataAccess.hh>
Public Member Functions | |
DataAccess (DM da, int dim, AccessType type) | |
int | setup (DM da, const char *dm_name, const char *vec_name) |
~DataAccess () | |
operator T () | |
Private Attributes | |
MPI_Comm | m_com |
bool | m_local |
DM | m_da |
Vec | m_x |
T | m_a |
This template class manages access to 2D and 3D Vecs stored in a DM using PetscObjectCompose
. Performs cleanup at the end of scope.
[in] | da | SNES DM for the solution containing 2D and 3D DMs and Vecs |
[in] | dim | number of dimensions (2 or 3) |
[in] | type | NOT_GHOSTED – for setting parameters; GHOSTED – for accessing ghosts during residual and Jacobian evaluation |
Definition at line 41 of file DataAccess.hh.