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
c94878fa
Commit
c94878fa
authored
6 years ago
by
Lincoln Sherpa
Committed by
Kilian Weishaupt
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[test][navierstokes] Use same executable for Stokes/NavierStokes channel test
* rename test
parent
fc4ecc99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1214
Feature/runtime inertia
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/freeflow/navierstokes/CMakeLists.txt
+26
-25
26 additions, 25 deletions
test/freeflow/navierstokes/CMakeLists.txt
with
26 additions
and
25 deletions
test/freeflow/navierstokes/CMakeLists.txt
+
26
−
25
View file @
c94878fa
...
@@ -31,14 +31,37 @@ dune_add_test(NAME test_navierstokes_hydrostaticpressure
...
@@ -31,14 +31,37 @@ dune_add_test(NAME test_navierstokes_hydrostaticpressure
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_closedsystem test_hydrostaticpressure.input"
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_closedsystem test_hydrostaticpressure.input"
--zeroThreshold {
"velocity_liq
\(
m/s
\)
"
:1e-16}
)
--zeroThreshold {
"velocity_liq
\(
m/s
\)
"
:1e-16}
)
dune_add_test
(
NAME test_channel_stokes
add_executable
(
test_channel EXCLUDE_FROM_ALL test_channel.cc
)
SOURCES test_channel.cc
dune_add_test
(
NAME test_stokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-stokes.vtu
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-stokes.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_stokes-00002.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_stokes-00002.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_stokes"
)
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel test_channel_stokes.input"
)
dune_add_test
(
NAME test_navierstokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-navierstokes-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes-00002.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel test_channel_navierstokes.input -Vtk.WriteFaceData 1"
)
dune_add_test
(
NAME test_navierstokes_channel_restart
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-navierstokes-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes_restart-00001.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel test_channel_navierstokes.input -Vtk.WriteFaceData 1 -TimeLoop.DtInitial 1 -Restart.Time 1 -CellCenter.Restart.File test_channel_navierstokes-00001.vtu -Face.Restart.File test_channel_navierstokes-face-00001.vtp -Problem.Name test_channel_navierstokes_restart"
)
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties
(
test_navierstokes_channel_restart PROPERTIES DEPENDS test_channel_navierstokes
)
add_executable
(
test_channel_stokesni EXCLUDE_FROM_ALL test_channel.cc
)
add_executable
(
test_channel_stokesni EXCLUDE_FROM_ALL test_channel.cc
)
target_compile_definitions
(
test_channel_stokesni PUBLIC
"NONISOTHERMAL=1"
)
target_compile_definitions
(
test_channel_stokesni PUBLIC
"NONISOTHERMAL=1"
)
...
@@ -62,28 +85,6 @@ dune_add_test(NAME test_channel_stokesni_conduction
...
@@ -62,28 +85,6 @@ dune_add_test(NAME test_channel_stokesni_conduction
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_stokesni test_channel_stokesni_conduction.input"
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_stokesni test_channel_stokesni_conduction.input"
--zeroThreshold {
"velocity_liq
\(
m/s
\)
"
:1e-20}
)
--zeroThreshold {
"velocity_liq
\(
m/s
\)
"
:1e-20}
)
dune_add_test
(
NAME test_channel_navierstokes
SOURCES test_channel.cc
COMPILE_DEFINITIONS ENABLE_NAVIERSTOKES=1
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-navierstokes-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes-00002.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes -Vtk.WriteFaceData 1"
)
dune_add_test
(
NAME test_channel_navierstokes_restart
TARGET test_channel_navierstokes
CMAKE_GUARD HAVE_UMFPACK
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/channel-navierstokes-reference.vtu
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes_restart-00001.vtu
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_channel_navierstokes -Vtk.WriteFaceData 1 -TimeLoop.DtInitial 1 -Restart.Time 1 -CellCenter.Restart.File test_channel_navierstokes-00001.vtu -Face.Restart.File test_channel_navierstokes-face-00001.vtp -Problem.Name test_channel_navierstokes_restart"
)
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties
(
test_channel_navierstokes_restart PROPERTIES DEPENDS test_channel_navierstokes
)
dune_add_test
(
NAME test_stokes_donea_no_caching
dune_add_test
(
NAME test_stokes_donea_no_caching
SOURCES test_donea.cc
SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK
CMAKE_GUARD HAVE_UMFPACK
...
...
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