Skip to content
Snippets Groups Projects
Commit d793f848 authored by Hanchuan Wu's avatar Hanchuan Wu
Browse files

[example] Fix cmake file to prevent the plot in ctest causing time out

parent 512f1d84
No related branches found
No related tags found
1 merge request!3552[example] Fix cmake file to prevent the plot in ctest causing time out
Pipeline #31587 passed
+3
......@@ -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
......
......@@ -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();
};
......
......@@ -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();
};
......
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