|
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
#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.