diff options
-rw-r--r-- | Carpet/CarpetLib/src/gdata.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh index 5836f8f4e..a36fbb84c 100644 --- a/Carpet/CarpetLib/src/gdata.hh +++ b/Carpet/CarpetLib/src/gdata.hh @@ -124,7 +124,7 @@ public: assert (_has_storage); return _extent; } - + int elementsize () const { return c_datatype_size(); } @@ -133,8 +133,8 @@ public: int offset (const ivect& index) const { assert (_has_storage); assert (all((index-extent().lower()) % extent().stride() == 0)); - ivect ind = (index-extent().lower()) / extent().stride(); - assert (all(ind>=0 && ind<=shape())); + ivect const ind = (index-extent().lower()) / extent().stride(); + assert (all(ind>=0 and ind<=shape())); return dot(ind, stride()); } |