20 #ifndef OPM_PARSER_GRIDDIMS_HPP
21 #define OPM_PARSER_GRIDDIMS_HPP
36 explicit GridDims(std::array<int, 3> xyz);
37 GridDims(
size_t nx,
size_t ny,
size_t nz);
47 size_t operator[](
int dim)
const;
49 const std::array<int, 3> getNXYZ()
const;
51 size_t getGlobalIndex(
size_t i,
size_t j,
size_t k)
const;
53 const std::array<int, 3> getIJK(
size_t globalIndex)
const;
55 size_t getCartesianSize()
const;
57 void assertGlobalIndex(
size_t globalIndex)
const;
59 void assertIJK(
size_t i,
size_t j,
size_t k)
const;
61 bool operator==(
const GridDims& data)
const;
63 template<
class Serializer>
78 void binary_init(
const Deck& deck);
Definition: DeckKeyword.hpp:36
Definition: GridDims.hpp:32
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29