20 #include "pism/util/fem/ElementIterator.hh"
22 #include "pism/util/Grid.hh"
33 int xf = grid.
xs() + grid.
xm() - 1;
35 int yf = grid.
ys() + grid.
ym() - 1;
38 int lxf =
lxs + grid.
xm() - 1;
40 int lyf =
lys + grid.
ym() - 1;
51 if (xf > (
int)grid.
Mx() - 2) {
63 if (yf > (
int)grid.
My() - 2) {
int ys() const
Global starting index of this processor's subset.
grid::Periodicity periodicity() const
Return grid periodicity.
unsigned int My() const
Total grid size in the Y direction.
unsigned int Mx() const
Total grid size in the X direction.
int xs() const
Global starting index of this processor's subset.
int xm() const
Width of this processor's sub-domain.
int ym() const
Width of this processor's sub-domain.
Describes the PISM grid and the distribution of data across processors.
int xm
total number of elements to loop over in the x-direction.
int lym
total number local elements in y direction.
int lxm
total number local elements in x direction.
int lxs
x-index of the first local element.
ElementIterator(const Grid &g)
int ym
total number of elements to loop over in the y-direction.
int ys
y-coordinate of the first element to loop over.
int lys
y-index of the first local element.
int xs
x-coordinate of the first element to loop over.