37 using ScalarBuffer = std::vector<Scalar>;
40 void allocate(
const unsigned bufferSize,
41 const SpeciesConfig& species,
42 const MineralConfig& minerals);
44 using AssignFunction = std::function<Scalar(
const unsigned)>;
46 void assignSpeciesConcentrations(
const unsigned globalDofIdx,
47 const AssignFunction& concentration);
48 void assignMineralConcentrations(
const unsigned globalDofIdx,
49 const AssignFunction& concentration);
50 void assignPH(
const unsigned globalDofIdx,
const Scalar ph);
52 void outputRestart(data::Solution& sol,
53 const SpeciesConfig& species,
54 const MineralConfig& minerals);
56 bool allocated()
const
57 {
return allocated_; }
60 std::vector<ScalarBuffer> speciesConcentrations_{};
61 std::vector<ScalarBuffer> mineralConcentrations_{};
63 bool allocated_{
false};