Skip to content
Snippets Groups Projects
Commit 0ac06881 authored by Katharina Heck's avatar Katharina Heck
Browse files

[cleanup] reuse executable

parent 88e6f6d7
No related branches found
No related tags found
1 merge request!1206Feature/restart for mineralization
dune_symlink_to_source_files(FILES test_2pncmin.input)
add_executable(test_2pncmin_box EXCLUDE_FROM_ALL test_2pncmin_fv.cc)
target_compile_definitions(test_2pncmin_box PUBLIC TYPETAG=DissolutionBoxTypeTag)
# isothermal tests
dune_add_test(NAME test_2pncmin_box
SOURCES test_2pncmin_fv.cc
COMPILE_DEFINITIONS TYPETAG=DissolutionBoxTypeTag
TARGET test_2pncmin_box
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/saltflushbox2pncmin-reference.vtu
......@@ -11,8 +13,7 @@ dune_add_test(NAME test_2pncmin_box
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2pncmin_box -ParameterFile test_2pncmin.input -Problem.Name saltflushbox")
dune_add_test(NAME test_2pncmin_box_restart
SOURCES test_2pncmin_fv.cc
COMPILE_DEFINITIONS TYPETAG=DissolutionBoxTypeTag
TARGET test_2pncmin_box
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/saltflushbox2pncmin-reference.vtu
......
......@@ -124,7 +124,7 @@ int main(int argc, char** argv) try
// the solution vector
using SolutionVector = typename GET_PROP_TYPE(TypeTag, SolutionVector);
SolutionVector x(fvGridGeometry->numDofs());
if (restartTime > 0)
if (restartTime > 0)
{
using ModelTraits = typename GET_PROP_TYPE(TypeTag, ModelTraits);
using FluidSystem = typename GET_PROP_TYPE(TypeTag, FluidSystem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment