Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux-course
Commits
dc295824
Commit
dc295824
authored
Jul 17, 2018
by
Martin Schneider
Browse files
[tutorial] Fix assert and warning when using debug opts
parent
cb6e4abd
Changes
2
Hide whitespace changes
Inline
Side-by-side
exercises/exercise-mainfile/1pproblem.hh
View file @
dc295824
...
...
@@ -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
...
...
exercises/exercise-mainfile/exercise_1p_c.cc
View file @
dc295824
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment