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::petsc::VecArray2D Class Reference

Wrapper around VecGetArray2d and VecRestoreArray2d. More...

#include <Vec.hh>

Public Member Functions

 VecArray2D (::Vec vec, int my_Mx, int my_My)
 
 VecArray2D (::Vec vec, int my_Mx, int my_My, int i0, int j0)
 
 ~VecArray2D ()
 
double & operator() (int i, int j)
 

Private Attributes

int m_Mx
 
int m_My
 
int m_i_offset
 
int m_j_offset
 
::Vec m_v
 
double ** m_array
 

Detailed Description

Wrapper around VecGetArray2d and VecRestoreArray2d.

Definition at line 55 of file Vec.hh.


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