Commit 4f2cdebf authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[test]

implemented use of input files by CMakeLists.txt

reviewed by natalies



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13406 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 595cf60e
......@@ -4,10 +4,8 @@ add_dumux_test(test_general_box test_general_box test_generalproblem2p.cc
${CMAKE_SOURCE_DIR}/test/references/generallens_box-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/generallens_box-00003.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_general_box
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_generalproblem2p.input
-ModelType Box
-TimeManager.TEnd 1e2
-TimeManager.DtInitial 2e1)
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_generalproblem2p_reference.input
-ModelType Box)
add_dumux_test(test_general_dec test_general_dec test_generalproblem2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -15,7 +13,5 @@ add_dumux_test(test_general_dec test_general_dec test_generalproblem2p.cc
${CMAKE_SOURCE_DIR}/test/references/generallens_decoupled-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/generallens_decoupled-00003.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_general_dec
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_generalproblem2p.input
-ModelType Decoupled
-TimeManager.TEnd 1e2
-TimeManager.DtInitial 2e1)
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_generalproblem2p_reference.input
-ModelType Decoupled)
###############################################################
# Parameter file for test_2p.
# Parameter file for test_generalproblem2p.
# Everything behind a '#' is a comment.
# Type "./test_2p --help" for more information.
# Type "./test_generalproblem2p --help" for more information.
###############################################################
###############################################################
......
###############################################################
# Parameter file for test_generalproblem2p.
# Everything behind a '#' is a comment.
# Type "./test_generalproblem2p --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 2e1 # [s]
TEnd = 1e2 # [s]
[Grid]
NumberOfCellsX = 48# [-] level 0 resolution in x-direction
NumberOfCellsY = 32# [-] level 0 resolution in y-direction
UpperRightX = 6# [m] dimension of the grid
UpperRightY = 4# [m] dimension of the grid
[SpatialParams]
LensLowerLeftX = 1.0 # [m] x-coordinate of the lower left lens corner
LensLowerLeftY = 2.0 # [m] y-coordinate of the lower left lens corner
LensUpperRightX = 4.0 # [m] x-coordinate of the upper right lens corner
LensUpperRightY = 3.0 # [m] y-coordinate of the upper right lens corner
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
# [TimeManager]
# Restart = ...
......@@ -20,7 +20,6 @@ add_dumux_test(test_diffusion3d test_diffusion3d test_diffusion3d.cc
${CMAKE_SOURCE_DIR}/test/references/test_diffusion3d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_diffusion3d_mimetic-00001.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_diffusion3d
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_diffusion3d.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_diffusion3d_ug1.dgf)
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_diffusion3d_reference.input)
add_dune_alugrid_flags(test_diffusion3d)
add_dune_ug_flags(test_diffusion3d)
###############################################################
# Parameter file for test_diffusion3d
# Everything behind a '#' is a comment.
# Type "./test_diffusion3d --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[Grid]
#File = ./grids/test_diffusion3d_sg.dgf
File = ./grids/test_diffusion3d_ug1.dgf
......@@ -7,3 +17,15 @@ RefinementRatio = 0
#[Problem]
#OutputName =
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
# [TimeManager]
# Restart = ...
###############################################################
# Parameter file for test_diffusion3d
# Everything behind a '#' is a comment.
# Type "./test_diffusion3d --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[Grid]
File = ./grids/test_diffusion3d_ug1.dgf
RefinementRatio = 0
#[Problem]
#OutputName =
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
# [TimeManager]
# Restart = ...
......@@ -3,16 +3,14 @@ add_dumux_test(test_impes test_impes test_impes.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_impes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impes-00009.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impes.input)
${CMAKE_CURRENT_BINARY_DIR}/test_impes)
add_dumux_test(test_impesadaptive test_impesadaptive test_impesadaptive.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_2padaptive-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_2padaptive-00007.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impesadaptive
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impesadaptive.input)
${CMAKE_CURRENT_BINARY_DIR}/test_impesadaptive)
add_dune_alugrid_flags(test_impesadaptive)
add_executable("test_impeswithamg" EXCLUDE_FROM_ALL test_impeswithamg.cc)
......@@ -24,7 +22,6 @@ if(MPI_FOUND)
${CMAKE_CURRENT_BINARY_DIR}/s0002-p0001-test_impeswithamg-00094.vtu
"${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg"
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impeswithamg.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_impeswithamg.dgf
-TimeManager.TEnd 7e7)
add_dune_superlu_flags(test_impeswithamg)
add_dune_mpi_flags(test_impeswithamg)
......@@ -34,9 +31,7 @@ else()
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_impes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg-00009.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impeswithamg.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_impeswithamg.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg)
endif(MPI_FOUND)
add_dumux_test(test_transport test_transport test_transport.cc
......@@ -44,9 +39,7 @@ add_dumux_test(test_transport test_transport test_transport.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_transport-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_transport-00006.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_transport
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_transport.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_transport.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_transport)
add_dumux_test(test_mpfao2p test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -56,6 +49,7 @@ add_dumux_test(test_mpfao2p test_mpfa2p test_mpfa2p.cc
${CMAKE_CURRENT_BINARY_DIR}/test_mpfa2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_mpfa2p.input
-ModelType MPFAO)
add_dumux_test(test_mpfal2p test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -64,6 +58,7 @@ add_dumux_test(test_mpfal2p test_mpfa2p test_mpfa2p.cc
${CMAKE_CURRENT_BINARY_DIR}/test_mpfa2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_mpfa2p.input
-ModelType MPFAL)
add_dumux_test(test_mpfal2padaptive test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......
......@@ -3,8 +3,7 @@ add_dumux_test(test_adaptive2p2c2d test_adaptive2p2c2d test_adaptive2p2c2d.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_adaptive2p2c2d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c2d-00008.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c2d
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_adaptive2p2c2d.input)
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c2d)
add_dune_alugrid_flags(test_adaptive2p2c2d)
add_dumux_test(test_dec2p2c test_dec2p2c test_dec2p2c.cc
......@@ -12,8 +11,7 @@ add_dumux_test(test_dec2p2c test_dec2p2c test_dec2p2c.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_dec2p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_dec2p2c-00021.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_dec2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_dec2p2c.input)
${CMAKE_CURRENT_BINARY_DIR}/test_dec2p2c)
add_dumux_test(test_multiphysics2p2c test_multiphysics2p2c test_multiphysics2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......
......@@ -3,9 +3,7 @@ add_dumux_test(test_navierstokes test_navierstokes test_navierstokes.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/navierstokes-00008.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_navierstokes.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_navierstokes.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes)
add_dune_superlu_flags(test_navierstokes)
add_dune_alugrid_flags(test_navierstokes)
add_dune_ug_flags(test_navierstokes)
......@@ -3,7 +3,5 @@ add_dumux_test(test_stokes test_stokes test_stokes.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/stokes-00014.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_stokes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_stokes)
add_dune_superlu_flags(test_stokes)
......@@ -3,7 +3,5 @@ add_dumux_test(test_stokes2c test_stokes2c test_stokes2c.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/stokes2c-00007.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes2c.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes2c.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c)
add_dune_superlu_flags(test_stokes2c)
......@@ -3,8 +3,6 @@ add_dumux_test(test_stokes2cni test_stokes2cni test_stokes2cni.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes2cni-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/stokes2cni-00008.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2cni
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes2cni.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes2cni.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2cni)
add_dune_superlu_flags(test_stokes2cni)
add_dune_umfpack_flags(test_stokes2cni)
......@@ -3,7 +3,5 @@ add_dumux_test(test_el1p2c test_el1p2c test_el1p2c.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/el1p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/el1p2c-00015.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_el1p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_el1p2c.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_el1p2c.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_el1p2c)
add_dune_superlu_flags(test_el1p2c)
......@@ -3,7 +3,5 @@ add_dumux_test(test_elastic test_elastic test_elastic.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/elasticmatrix-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/elasticmatrix-00002.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_elastic
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_elastic.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_elastic.dgf)
${CMAKE_CURRENT_BINARY_DIR}/test_elastic)
add_dune_superlu_flags(test_elastic)
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