Commit 6ab16447 authored by Bernd Flemisch's avatar Bernd Flemisch Committed by Dennis Gläser
Browse files

[io][restart] add default implementation and test

parent 45dd9ec9
......@@ -490,6 +490,11 @@ public:
}
}
void applyRestartSolution(SolutionVector& sol) const
{
applyInitialSolutionImpl_(sol, std::integral_constant<bool, isBox>());
}
/*!
* \brief Evaluate the initial value for
* an element (for cell-centered models)
......
......@@ -10,6 +10,16 @@ dune_add_test(NAME test_2p_incompressible_tpfa
${CMAKE_CURRENT_BINARY_DIR}/2p_tpfa-00008.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa test_2p.input -Problem.Name 2p_tpfa")
# using tpfa
dune_add_test(NAME test_2p_incompressible_tpfa_restart
SOURCES test_2p_fv.cc
COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/lenscc-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/2p_tpfa_restart-00003.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_restart test_2p.input -Problem.Name 2p_tpfa_restart -TimeLoop.DtInitial 526.62 -Restart.Time 1859.95 -Restart.File 2p_tpfa-00005.vtu")
# using box
dune_add_test(NAME test_2p_incompressible_box
SOURCES test_2p_fv.cc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment