Commit 1674a58c authored by Timo Koch's avatar Timo Koch
Browse files

[test][2p] Add incompressible tpfa test with analytic Jacobian

parent c6c51639
......@@ -13,6 +13,16 @@ dumux_add_test(NAME test_2p_incompressible_tpfa
${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa params.input -Problem.Name test_2p_incompressible_tpfa")
dumux_add_test(NAME test_2p_incompressible_tpfa_analytic
SOURCES main.cc
LABELS porousmediumflow 2p
COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa DIFFMETHOD=DiffMethod::analytic
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_analytic-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_analytic params.input -Problem.Name test_2p_incompressible_tpfa_analytic -Newton.EnablePartialReassembly false")
# using tpfa
dumux_add_test(NAME test_2p_incompressible_tpfa_restart
TARGET test_2p_incompressible_tpfa
......
......@@ -53,6 +53,10 @@
#include <dumux/io/grid/gridmanager.hh>
#include <dumux/io/loadsolution.hh>
#ifndef DIFFMETHOD
#define DIFFMETHOD DiffMethod::numeric
#endif
/*!
* \brief Provides an interface for customizing error messages associated with
* reading in parameters.
......@@ -173,7 +177,7 @@ int main(int argc, char** argv) try
timeLoop->setMaxTimeStepSize(maxDt);
// the assembler with time loop for instationary problem
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
using Assembler = FVAssembler<TypeTag, DIFFMETHOD>;
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld);
// the linear solver
......
Markdown is supported
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