If you call DataConstRef::storage_order() on an object that isn't a grid, you get an exception with a message that says you cannot call shape() on something that isn't a grid, which is quite confusing. The error message should say that the problem is in a call to storage_order() instead.
If you call
DataConstRef::storage_order()
on an object that isn't a grid, you get an exception with a message that says you cannot callshape()
on something that isn't a grid, which is quite confusing. The error message should say that the problem is in a call tostorage_order()
instead.