PISM, A Parallel Ice Sheet Model
stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
|
#include <Grid.hh>
Public Member Functions | |
PointsWithGhosts (const Grid &grid, unsigned int stencil_width=1) | |
int | i () const |
int | j () const |
void | next () |
operator bool () const | |
Private Attributes | |
int | m_i |
int | m_j |
int | m_i_first |
int | m_i_last |
int | m_j_first |
int | m_j_last |
bool | m_done |
Iterator class for traversing the grid, including ghost points.
Usage:
for (PointsWithGhosts p(grid, stencil_width); p; p.next()) { ... }