PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Public Member Functions | Private Attributes | List of all members
pism::DataAccess< T > Class Template Reference

#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
 
m_a
 

Detailed Description

template<typename T>
class pism::DataAccess< T >

This template class manages access to 2D and 3D Vecs stored in a DM using PetscObjectCompose. Performs cleanup at the end of scope.

Parameters
[in]daSNES DM for the solution containing 2D and 3D DMs and Vecs
[in]dimnumber of dimensions (2 or 3)
[in]typeNOT_GHOSTED – for setting parameters; GHOSTED – for accessing ghosts during residual and Jacobian evaluation

Definition at line 41 of file DataAccess.hh.


The documentation for this class was generated from the following file: