src/Neighbor/GridCellIndexInline.hh
//------------------------------------------------------------------------------
// Similarly, define an iterator-like function that will sequentially return
// the next grid cell in a sequence, given the current grid cell, the min, and 
// the max.
//------------------------------------------------------------------------------
Similarly, define an iterator-like function that will sequentially return
the next grid cell in a sequence, given the current grid cell, the min, and
the max.
Similarly define an iterator - like function that will sequentially return the next grid cell in a sequence given the current grid cell the min and the max .
inline
void
incrementGridCell(GridCellIndex<Dim<1> >& gridCell,
                  const GridCellIndex<Dim<1> >& gridCellMin,
                  const GridCellIndex<Dim<1> >& gridCellMax) {
  CONTRACT_VAR(gridCellMin);
  CONTRACT_VAR(gridCellMax);
  REQUIRE(gridCellMax.xIndex() >= gridCellMin.xIndex());
  REQUIRE(gridCell >= gridCellMin && gridCell <= gridCellMax);
  gridCell.xIndex(gridCell.xIndex() + 1);
}
inline void incrementGridCell ( GridCellIndex < Dim < 1 > > & gridCell , const GridCellIndex < Dim < 1 > > & gridCellMin , const GridCellIndex < Dim < 1 > > & gridCellMax ) { CONTRACT_VAR ( gridCellMin ) ; CONTRACT_VAR ( gridCellMax ) ; REQUIRE ( gridCellMax . xIndex ( ) >= gridCellMin . xIndex ( ) ) ; REQUIRE ( gridCell >= gridCellMin && gridCell <= gridCellMax ) ; gridCell . xIndex ( gridCell . xIndex ( ) + 1 ) ; }
Similarly, define an iterator-like function that will sequentially return
the next grid cell in a sequence, given the current grid cell, the min, and
the max.
Similarly define an iterator - like function that will sequentially return the next grid cell in a sequence given the current grid cell the min and the max .