26 #ifndef OPM_CO2H2_CONTAINER_HPP 27 #define OPM_CO2H2_CONTAINER_HPP 33 namespace data {
class Solution; }
36 template<
class Scalar>
39 using ScalarBuffer = std::vector<Scalar>;
42 void allocate(
const unsigned bufferSize,
const bool isCO2);
44 void assign(
const unsigned globalDofIdx,
51 void outputRestart(data::Solution& sol);
53 void readRestart(
const unsigned globalDofIdx,
54 const unsigned elemIdx,
55 const data::Solution& sol);
57 bool allocated()
const 58 {
return allocated_; }
61 bool allocated_ =
false;
62 ScalarBuffer cXmfCO2_{};
63 ScalarBuffer cXmfH2_{};
64 ScalarBuffer cYmfwat_{};
69 #endif // OPM_CO2H2_CONTAINER_HPP Struct holding CO2 and H2 extension data.
Definition: CO2H2Container.hpp:34
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Definition: CO2H2Container.hpp:37