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
Commits
64af647a
Commit
64af647a
authored
Nov 06, 2020
by
Timo Koch
Browse files
[example] Fixup liddrivencavity test cmake skip
parent
f0b9e99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/liddrivencavity/CMakeLists.txt
View file @
64af647a
add_subdirectory
(
reference_data
)
dune_symlink_to_source_files
(
FILES
"params_re1.input"
"params_re1000.input"
"run_and_plot.py"
)
set
(
DUMUX_EXAMPLE_LDC_CMAKE_GUARDS
"( HAVE_UMFPACK )"
)
# set the test guard for the following tests (only enable test if UMFPack is available)
set
(
DUMUX_EXAMPLE_LDC_CMAKE_GUARD
"( HAVE_UMFPACK )"
)
dumux_add_test
(
NAME example_ff_liddrivencavity
SOURCES main.cc
LABELS freeflow navierstokes example
CMAKE_GUARD DUMUX_EXAMPLE_LDC_CMAKE_GUARD
S
CMAKE_GUARD
${
DUMUX_EXAMPLE_LDC_CMAKE_GUARD
}
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files
${
CMAKE_SOURCE_DIR
}
/test/references/test_ff_navierstokes_closedsystem_ldc_re1-reference.vtu
...
...
@@ -23,8 +25,11 @@ dumux_add_test(NAME example_ff_liddrivencavity_re1000
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/example_ff_liddrivencavity params_re1000.input
-Grid.Cells
\"
64 64
\"
-TimeLoop.TEnd 50"
)
# test plot script (only if UMFPack is available and the tests above were actually run)
if
(
DUMUX_EXAMPLE_LDC_CMAKE_GUARDS
)
# test plot script (only if the guard enables to TRUE, i.e. all preconditions for the above tests are met)
dumux_evaluate_cmake_guard
(
DUMUX_ENABLE_LDC_PLOT_TEST
CMAKE_GUARD
${
DUMUX_EXAMPLE_LDC_CMAKE_GUARD
}
)
if
(
DUMUX_ENABLE_LDC_PLOT_TEST
)
dumux_add_test
(
NAME example_ff_liddrivencavity_plot
TARGET example_ff_liddrivencavity
COMMAND
${
CMAKE_CURRENT_SOURCE_DIR
}
/run_and_plot.py
...
...
Kilian Weishaupt
@kweis
mentioned in commit
6bc37667
·
Nov 06, 2020
mentioned in commit
6bc37667
mentioned in commit 6bc37667bae749415a10fcfbd1a09e0251879f08
Toggle commit list
Kilian Weishaupt
@kweis
mentioned in merge request
!2376 (merged)
·
Nov 06, 2020
mentioned in merge request
!2376 (merged)
mentioned in merge request !2376
Toggle commit list
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