PISM, A Parallel Ice Sheet Model
stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
|
#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()) { ... }