14 #ifndef ESYS_LSMCARTESIANGRID_H
15 #define ESYS_LSMCARTESIANGRID_H
27 #include <boost/pool/object_pool.hpp>
28 #include <boost/shared_ptr.hpp>
34 template <
typename TmplValue>
205 template <
typename TmplGr
idPo
inter,
typename TmplCellRef,
typename TmplCell>
302 const Vec3L index =
Vec3L(
int(nearbyint(relPos.
X())), int(nearbyint(relPos.
Y())), int(nearbyint(relPos.
Z())));
434 while (cellIt.hasNext())
436 cellIt.next().clear();
455 m_dimensions =
Vec3L(
int(nearbyint(dims[0])),
int(nearbyint(dims[1])),
int(nearbyint(dims[2])));
474 const Vec3L index(i, j, k);
477 if ((&(
getCell(pos))) == (&(cell)))
484 std::stringstream sStream;
486 <<
"Couldn't set grid location for cell ("
487 << i <<
"," << j <<
"," << k <<
"), pos = " << pos;
488 throw std::runtime_error(sStream.str());
497 typedef boost::object_pool<value_type>
Pool;