Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Commits
ee1b96e4
Commit
ee1b96e4
authored
6 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[freeflow][test] Test donea with disabled caches
parent
2a6840cc
No related branches found
No related tags found
1 merge request
!1143
Fix/caching staggered
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/freeflow/navierstokes/CMakeLists.txt
+11
-0
11 additions, 0 deletions
test/freeflow/navierstokes/CMakeLists.txt
test/freeflow/navierstokes/doneatestproblem.hh
+8
-4
8 additions, 4 deletions
test/freeflow/navierstokes/doneatestproblem.hh
with
19 additions
and
4 deletions
test/freeflow/navierstokes/CMakeLists.txt
+
11
−
0
View file @
ee1b96e4
...
...
@@ -72,9 +72,20 @@ dune_add_test(NAME test_channel_navierstokes
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes-00002.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes"
)
dune_add_test
(
NAME test_stokes_donea_no_caching
SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK
COMPILE_DEFINITIONS ENABLECACHING=0
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/stokes-donea-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_donea-00001.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_stokes_donea_no_caching test_stokes_donea.input"
)
dune_add_test
(
NAME test_stokes_donea
SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK
COMPILE_DEFINITIONS ENABLECACHING=1
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/stokes-donea-reference.vtu
...
...
This diff is collapsed.
Click to expand it.
test/freeflow/navierstokes/doneatestproblem.hh
+
8
−
4
View file @
ee1b96e4
...
...
@@ -24,6 +24,10 @@
#ifndef DUMUX_DONEA_TEST_PROBLEM_HH
#define DUMUX_DONEA_TEST_PROBLEM_HH
#ifndef ENABLECACHING
#define ENABLECACHING 0
#endif
#include
<dune/grid/yaspgrid.hh>
#include
<dumux/material/fluidsystems/1pliquid.hh>
...
...
@@ -57,10 +61,10 @@ SET_TYPE_PROP(DoneaTestTypeTag, Grid, Dune::YaspGrid<2>);
// Set the problem property
SET_TYPE_PROP
(
DoneaTestTypeTag
,
Problem
,
Dumux
::
DoneaTestProblem
<
TypeTag
>
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableFVGridGeometryCache
,
true
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableGrid
Flux
VariablesCache
,
true
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableGrid
Volum
eVariablesCache
,
true
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableFVGridGeometryCache
,
ENABLECACHING
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableGridFluxVariablesCache
,
ENABLECACHING
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableGrid
Volume
VariablesCache
,
ENABLECACHING
);
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableGrid
Fac
eVariablesCache
,
ENABLECACHING
);
#if ENABLE_NAVIERSTOKES
SET_BOOL_PROP
(
DoneaTestTypeTag
,
EnableInertiaTerms
,
true
);
...
...
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