Commit b7a44b24 authored by Timo Koch's avatar Timo Koch Committed by Timo Koch
Browse files

[test][fcstaggered] Make momentum test run in parallel and add reference

parent 2fbf8181
Pipeline #8447 passed with stages
dumux_add_test(NAME test_ff_stokes_donea_momentum
SOURCES main_momentum.cc)
LABELS freeflow navierstokes
SOURCES main_momentum.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokes_donea_momentum-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/donea_momentum_1.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_donea_momentum")
dumux_add_test(NAME test_ff_stokes_donea_momentum_parallel
LABELS freeflow navierstokes
TARGET test_ff_stokes_donea_momentum
CMAKE_GUARD "( HAVE_UMFPACK AND HAVE_MPI AND ( DUNE_ISTL_VERSION VERSION_GREATER_EQUAL 2.8 ) )"
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokes_donea_momentum-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/s0004-donea_momentum_1.pvtu
--command "${MPIEXEC} -np 4 ${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_donea_momentum")
dumux_add_test(NAME test_ff_stokes_donea_nocaching
LABELS freeflow navierstokes
......
......@@ -105,7 +105,6 @@ int main(int argc, char** argv)
vtkWriter.addField(analyticalSolVectors.getAnalyticalPressureSolution(), "pressureExact");
vtkWriter.addField(analyticalSolVectors.getAnalyticalVelocitySolution(), "velocityExact");
vtkWriter.addFaceField(analyticalSolVectors.getAnalyticalVelocitySolutionOnFace(), "faceVelocityExact");
vtkWriter.write(0.0);
// use the staggered FV assembler
......
......@@ -6,33 +6,24 @@ Overlap = 1
[Problem]
Name = test_donea # name passed to the output routines
EnableGravity = false
PrintErrors = false
EnableInertiaTerms = false
PrintMatrix = false
UseNeumann = true
[Component]
LiquidDensity = 1.0
LiquidDensity = 1.0
LiquidKinematicViscosity = 1.0
[ Newton ]
MaxSteps = 10
MaxRelativeShift = 1e-5
[Vtk]
WriteFaceData = false
[LinearSolver]
Type = cgsolver
#Type = restartedgmressolver
Verbosity = 1
ResidualReduction = 1e-13
[LinearSolver.Preconditioner]
Type = amg
AmgAccumulationMode = atOnce
AmgMaxLevel = 2
Verbosity = 2
[Assembly]
NumericDifference.BaseEpsilon = 1e-8
This diff is collapsed.
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