Skip to content
Snippets Groups Projects
Commit 934ab368 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[test][stokes2c] Add test without caching

parent ee1b96e4
No related branches found
No related tags found
1 merge request!1143Fix/caching staggered
......@@ -47,6 +47,16 @@ dune_add_test(NAME test_stokes2c_advection
${CMAKE_CURRENT_BINARY_DIR}/test_advection-00009.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c test_stokes2c_advection.input")
dune_add_test(NAME test_stokes2c_advection_no_caching
SOURCES test_channel.cc
CMAKE_GUARD HAVE_UMFPACK
COMPILE_DEFINITIONS ENABLECACHING=0
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokes2c-advection.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_advection-00009.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c_advection_no_caching test_stokes2c_advection.input")
add_executable(test_stokes2cni EXCLUDE_FROM_ALL test_channel.cc)
target_compile_definitions(test_stokes2cni PUBLIC "NONISOTHERMAL=1")
......
......@@ -24,6 +24,10 @@
#ifndef DUMUX_CHANNEL_NC_TEST_PROBLEM_HH
#define DUMUX_CHANNEL_NC_TEST_PROBLEM_HH
#ifndef ENABLECACHING
#define ENABLECACHING 1
#endif
#include <dune/grid/yaspgrid.hh>
#include <dumux/material/components/simpleh2o.hh>
......@@ -64,10 +68,10 @@ SET_TYPE_PROP(ChannelNCTestTypeTag, Grid, Dune::YaspGrid<2>);
// Set the problem property
SET_TYPE_PROP(ChannelNCTestTypeTag, Problem, Dumux::ChannelNCTestProblem<TypeTag> );
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableFVGridGeometryCache, true);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridFluxVariablesCache, true);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridVolumeVariablesCache, true);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableFVGridGeometryCache, ENABLECACHING);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridFluxVariablesCache, ENABLECACHING);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridVolumeVariablesCache, ENABLECACHING);
SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridFaceVariablesCache, ENABLECACHING);
// Use mole fraction formulation
#if USE_MASS
......
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