38 std::size_t global_index;
43 std::size_t active_index{};
52 bool operator==(
const Props& other)
const;
54 static Props serializationTestObject();
56 template<
class Serializer>
59 serializer(this->permx);
60 serializer(this->permy);
61 serializer(this->permz);
62 serializer(this->poro);
63 serializer(this->satnum);
64 serializer(this->pvtnum);
65 serializer(this->ntg);
69 std::optional<Props> props;
70 std::size_t active_index()
const;
71 bool is_active()
const;
74 std::array<double, 3> dimensions{};
76 bool operator==(
const Cell& other)
const;
78 static Cell serializationTestObject();
80 template<
class Serializer>
83 serializer(this->global_index);
87 serializer(this->depth);
88 serializer(this->props);
89 serializer(this->dimensions);
92 Cell(std::size_t g, std::size_t i_, std::size_t j_, std::size_t k_)
102 CompletedCells() =
default;
103 ~CompletedCells() =
default;
104 explicit CompletedCells(
const GridDims& dims);
105 CompletedCells(std::size_t nx, std::size_t ny, std::size_t nz);
107 const Cell& get(std::size_t i, std::size_t j, std::size_t k)
const;
108 std::pair<bool, Cell&> try_get(std::size_t i, std::size_t j, std::size_t k);
110 bool operator==(
const CompletedCells& other)
const;
111 static CompletedCells serializationTestObject();
113 template<
class Serializer>
114 void serializeOp(Serializer& serializer)
116 serializer(this->dims);
117 serializer(this->cells);
122 std::unordered_map<std::size_t, Cell> cells;
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30