20 #ifndef OPM_PARSER_GRIDDIMS_HPP
21 #define OPM_PARSER_GRIDDIMS_HPP
34 explicit GridDims(
const std::array<int, 3>& xyz);
35 GridDims(std::size_t nx, std::size_t ny, std::size_t nz);
37 static GridDims serializationTestObject();
41 std::size_t getNX()
const;
42 std::size_t getNY()
const;
43 std::size_t getNZ()
const;
44 std::size_t operator[](
int dim)
const;
46 std::array<int, 3> getNXYZ()
const;
48 std::size_t getGlobalIndex(std::size_t i, std::size_t j, std::size_t k)
const;
50 std::array<int, 3> getIJK(std::size_t globalIndex)
const;
52 std::size_t getCartesianSize()
const;
54 void assertGlobalIndex(std::size_t globalIndex)
const;
56 void assertIJK(std::size_t i, std::size_t j, std::size_t k)
const;
58 bool operator==(
const GridDims& data)
const;
60 template<
class Serializer>
75 void binary_init(
const Deck& deck);
Definition: DeckKeyword.hpp:36
Definition: GridDims.hpp:31
Class for (de-)serializing.
Definition: Serializer.hpp:75
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29