diff --git a/examples/porenetwork_upscaling/CMakeLists.txt b/examples/porenetwork_upscaling/CMakeLists.txt index e3f482d500689cf39d607aa68aebe9ff3ebcf35e..1e56c8151792b17898de365e1c1ffe25118d0e94 100644 --- a/examples/porenetwork_upscaling/CMakeLists.txt +++ b/examples/porenetwork_upscaling/CMakeLists.txt @@ -13,7 +13,7 @@ dumux_add_test(NAME example_pnm1p_upscaling ${CMAKE_CURRENT_BINARY_DIR}/X-dir-PermeabilityratioVsForchheimerNumber.dat ${CMAKE_SOURCE_DIR}/test/references/example_porenetwork_upscaling_noncreeping_flow_X-dir_InversePrmeabilityVsInertiaToViscousRatio.dat ${CMAKE_CURRENT_BINARY_DIR}/X-dir-InversePrmeabilityVsInertiaToViscousRatio.dat - --command "${CMAKE_CURRENT_BINARY_DIR}/example_pnm1p_upscaling params.input -Problem.AssumeCreepingFlow false -Problem.Directions 0") + --command "${CMAKE_CURRENT_BINARY_DIR}/example_pnm1p_upscaling params.input -Problem.AssumeCreepingFlow false -Problem.Directions 0 -Output.PlotConductivity false") dumux_add_test(NAME example_pnm1p_creeping_flow_upscaling TARGET example_pnm1p_upscaling diff --git a/examples/porenetwork_upscaling/doc/main.md b/examples/porenetwork_upscaling/doc/main.md index ae0fc98df79902d6e435c9ccf0f0c359345c5145..644ed99c6d9e432cccaeb9cff77078ce8b8c77ed 100644 --- a/examples/porenetwork_upscaling/doc/main.md +++ b/examples/porenetwork_upscaling/doc/main.md @@ -234,7 +234,8 @@ and finally determine the the upscaled properties. // plot the results just for non-creeping flow // creeping flow would just result in a straight line (permeability is independent of the pressure gradient) - if (!isCreepingFlow) + bool plotConductivity = getParam<bool>("Output.PlotConductivity", true); + if (!isCreepingFlow && plotConductivity) upscalingHelper.plot(); }; diff --git a/examples/porenetwork_upscaling/main.cc b/examples/porenetwork_upscaling/main.cc index 59fd740da505918e957a76fed53262a00f992684..8700416a4ebd77aafe14d2a3fc48b8c7ab9207a8 100644 --- a/examples/porenetwork_upscaling/main.cc +++ b/examples/porenetwork_upscaling/main.cc @@ -197,7 +197,8 @@ void runExample() // plot the results just for non-creeping flow // creeping flow would just result in a straight line (permeability is independent of the pressure gradient) - if (!isCreepingFlow) + bool plotConductivity = getParam<bool>("Output.PlotConductivity", true); + if (!isCreepingFlow && plotConductivity) upscalingHelper.plot(); };