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 | |
Points (const Grid &g) | |
Public Member Functions inherited from pism::PointsWithGhosts | |
PointsWithGhosts (const Grid &grid, unsigned int stencil_width=1) | |
int | i () const |
int | j () const |
void | next () |
operator bool () const | |
Iterator class for traversing the grid (without ghost points).
Usage:
for (Points p(grid); p; p.next()) { int i = p.i(), j = p.j(); ... }