PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
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: