Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux-course
Commits
dc295824
Commit
dc295824
authored
6 years ago
by
Martin Schneider
Browse files
Options
Downloads
Patches
Plain Diff
[tutorial] Fix assert and warning when using debug opts
parent
cb6e4abd
No related branches found
No related tags found
1 merge request
!33
Fix/ex mainfiles
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exercises/exercise-mainfile/1pproblem.hh
+9
-1
9 additions, 1 deletion
exercises/exercise-mainfile/1pproblem.hh
exercises/exercise-mainfile/exercise_1p_c.cc
+1
-1
1 addition, 1 deletion
exercises/exercise-mainfile/exercise_1p_c.cc
with
10 additions
and
2 deletions
exercises/exercise-mainfile/1pproblem.hh
+
9
−
1
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
...
...
This diff is collapsed.
Click to expand it.
exercises/exercise-mainfile/exercise_1p_c.cc
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment