Commit 450345a5 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/examples-doc' into 'master'

[examples][doc] Update code documentation of examples

See merge request !2747

(cherry picked from commit c90ef226)

1d97ea3a [examples][doc] Update code documentation of examples
parent e81316d8
Pipeline #6755 waiting for manual action with stages
......@@ -278,13 +278,10 @@ private:
static constexpr int phaseIdx(int brinePhaseIdx) { return wPhaseIdx; }
static constexpr int compIdx(int brineCompIdx)
assert( brineCompIdx == Brine::H2OIdx || brineCompIdx == Brine::NaIdx
|| brineCompIdx == Brine::ClIdx || brineCompIdx == Brine::CaIdx);
switch (brineCompIdx)
assert(brineCompIdx == Brine::H2OIdx
|| brineCompIdx == Brine::NaIdx
|| brineCompIdx == Brine::ClIdx
|| brineCompIdx == Brine::CaIdx
case Brine::H2OIdx: return H2OIdx;
case Brine::NaIdx: return NaIdx;
case Brine::ClIdx: return ClIdx;
......@@ -110,9 +110,9 @@ int main(int argc, char** argv) try
using VtkWriter = PoreNetwork::VtkOutputModule<GridVariables, GetPropType<TypeTag, Properties::FluxVariables>, SolutionVector>;
VtkWriter vtkWriter(*gridVariables, x, problem->name());
vtkWriter.addField(gridGeometry->poreVolume(), "poreVolume", VtkWriter::FieldType::vertex);
vtkWriter.addField(gridGeometry->throatShapeFactor(), "throatShapeFactor", VtkWriter::FieldType::element);
vtkWriter.addField(gridGeometry->throatCrossSectionalArea(), "throatCrossSectionalArea", VtkWriter::FieldType::element);
vtkWriter.addField(gridGeometry->poreVolume(), "poreVolume", Vtk::FieldType::vertex);
vtkWriter.addField(gridGeometry->throatShapeFactor(), "throatShapeFactor", Vtk::FieldType::element);
vtkWriter.addField(gridGeometry->throatCrossSectionalArea(), "throatCrossSectionalArea", Vtk::FieldType::element);
### Instantiate the solver
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment