Commit acbdc0ed authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[test][co2] add test using flux vars cache

parent 7f3580eb
Pipeline #9009 passed with stages
......@@ -43,6 +43,20 @@ dumux_add_test(NAME test_co2_mpfa
${CMAKE_CURRENT_BINARY_DIR}/test_co2_mpfa-00028.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_mpfa params.input -Problem.Name test_co2_mpfa")
dumux_add_test(NAME test_co2_mpfa_fluxvarscache
LABELS porousmediumflow co2
TIMEOUT 3600
SOURCES main.cc
COMPILE_DEFINITIONS TYPETAG=HeterogeneousCCMpfa
COMPILE_DEFINITIONS FLUXVARSCACHE=1
CMAKE_GUARD "( dune-alugrid_FOUND )"
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_co2_mpfa-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_co2_mpfa_fluxvarscache-00028.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_mpfa_fluxvarscache params.input -Problem.Name test_co2_mpfa_fluxvarscache")
dumux_add_test(NAME test_co2_box_parallel
TARGET test_co2_box
LABELS porousmediumflow co2 parallel
......
......@@ -41,6 +41,10 @@
#define ISOTHERMAL 1
#endif
#ifndef FLUXVARSCACHE
#define FLUXVARSCACHE 0
#endif
#include "problem.hh"
#include "spatialparams.hh"
#include "co2tables.hh"
......@@ -94,9 +98,8 @@ template<class TypeTag>
struct EnableGridGeometryCache<TypeTag, TTag::Heterogeneous> { static constexpr bool value = true; };
template<class TypeTag>
struct EnableGridVolumeVariablesCache<TypeTag, TTag::Heterogeneous> { static constexpr bool value = true; };
// TODO: Test fails using this cache
// template<class TypeTag>
// struct EnableGridFluxVariablesCache<TypeTag, TTag::Heterogeneous> { static constexpr bool value = true; };
template<class TypeTag>
struct EnableGridFluxVariablesCache<TypeTag, TTag::Heterogeneous> { static constexpr bool value = FLUXVARSCACHE; };
#if !ISOTHERMAL
// Create new type tags
......
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