Skip to content
Snippets Groups Projects
Commit 695a94ba authored by Hamza Oukili's avatar Hamza Oukili
Browse files

Merge branch 'fix/make_example_pnm1pupscling_pass_ctest' into 'master'

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

See merge request !3552

(cherry picked from commit 77accf3b)

d793f848 [example] Fix cmake file to prevent the plot in ctest causing time out
parent 21d9086a
No related branches found
No related tags found
1 merge request!3553Merge branch 'fix/make_example_pnm1pupscling_pass_ctest' into 'master'
Pipeline #31596 passed
+2
......@@ -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