26 #ifndef OPM_EXTBO_CONTAINER_HPP 27 #define OPM_EXTBO_CONTAINER_HPP 33 namespace data {
class Solution; }
35 template<
class Scalar>
38 using ScalarBuffer = std::vector<Scalar>;
41 void allocate(
const unsigned bufferSize);
43 void assignMassFractions(
const unsigned globalDofIdx,
48 void assignVolumes(
const unsigned globalDofIdx,
50 const Scalar yVolume);
52 void assignZFraction(
const unsigned globalDofIdx,
53 const Scalar zFraction);
55 void outputRestart(data::Solution& sol);
57 bool allocated()
const 58 {
return allocated_; }
61 bool allocated_ =
false;
62 ScalarBuffer X_volume_;
63 ScalarBuffer Y_volume_;
64 ScalarBuffer Z_fraction_;
65 ScalarBuffer mFracOil_;
66 ScalarBuffer mFracGas_;
67 ScalarBuffer mFracCo2_;
72 #endif // OPM_EXTBO_CONTAINER_HPP This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Definition: ExtboContainer.hpp:36