Skip to content
Snippets Groups Projects
Commit dc295824 authored by Martin Schneider's avatar Martin Schneider
Browse files

[tutorial] Fix assert and warning when using debug opts

parent cb6e4abd
No related branches found
No related tags found
1 merge request!33Fix/ex mainfiles
......@@ -114,11 +114,19 @@ class OnePTestProblem : public PorousMediumFlowProblem<TypeTag>
using BoundaryTypes = typename GET_PROP_TYPE(TypeTag, BoundaryTypes);
static constexpr int dimWorld = GridView::dimensionworld;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
using FluidSystem = typename GET_PROP_TYPE(TypeTag, FluidSystem);
public:
OnePTestProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry)
{}
{
FluidSystem::Component::init(/*tempMin=*/272.15,
/*tempMax=*/294.15,
/*numTemp=*/10,
/*pMin=*/1.0e4,
/*pMax=*/1.0e6,
/*numP=*/200);
}
/*!
* \brief Specifies which kind of boundary condition should be
......
......@@ -99,7 +99,7 @@ int main(int argc, char** argv) try
// the grid variables
using GridVariables = typename GET_PROP_TYPE(TypeTag, GridVariables);
auto gridVariables = std::make_shared<GridVariables>(problem, fvGridGeometry);
gridVariables->init(x);
gridVariables->init(x, xOld);
// intialize the vtk output module
using VtkOutputFields = typename GET_PROP_TYPE(TypeTag, VtkOutputFields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment