Skip to content
Snippets Groups Projects
Commit 222e9c6b authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Replaced Tests/Data with Tests/lfs-data.

parent e1720960
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ AddTest( ...@@ -3,7 +3,7 @@ AddTest(
NAME MapGeometryToMeshSurface_Ammer NAME MapGeometryToMeshSurface_Ammer
PATH MeshGeoToolsLib/Ammer/ PATH MeshGeoToolsLib/Ammer/
EXECUTABLE MapGeometryToMeshSurface EXECUTABLE MapGeometryToMeshSurface
EXECUTABLE_ARGS -m Ammer-Homogen100m-Final-TopSurface.vtu -i Ammer-Rivers.gml -o ${PROJECT_BINARY_DIR}/Tests/Data/MeshGeoToolsLib/Ammer/Ammer-Rivers-Mapped.gml EXECUTABLE_ARGS -m Ammer-Homogen100m-Final-TopSurface.vtu -i Ammer-Rivers.gml -o ${Data_BINARY_DIR}/MeshGeoToolsLib/Ammer/Ammer-Rivers-Mapped.gml
TESTER diff TESTER diff
REQUIREMENTS NOT OGS_USE_MPI REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA Ammer-Rivers-Mapped.gml DIFF_DATA Ammer-Rivers-Mapped.gml
...@@ -13,7 +13,7 @@ AddTest( ...@@ -13,7 +13,7 @@ AddTest(
NAME LARGE_MapGeometryToMeshSurface_Bode NAME LARGE_MapGeometryToMeshSurface_Bode
PATH MeshGeoToolsLib/Bode/ PATH MeshGeoToolsLib/Bode/
EXECUTABLE MapGeometryToMeshSurface EXECUTABLE MapGeometryToMeshSurface
EXECUTABLE_ARGS -m BodeComplex.msh -i BodeEZG_Fliessgewaesser.gml -o ${PROJECT_BINARY_DIR}/Tests/Data/MeshGeoToolsLib/Bode/BodeEZG_Fliessgewaesser-Mapped.gml EXECUTABLE_ARGS -m BodeComplex.msh -i BodeEZG_Fliessgewaesser.gml -o ${Data_BINARY_DIR}/MeshGeoToolsLib/Bode/BodeEZG_Fliessgewaesser-Mapped.gml
REQUIREMENTS NOT OGS_USE_MPI REQUIREMENTS NOT OGS_USE_MPI
TESTER diff TESTER diff
DIFF_DATA BodeEZG_Fliessgewaesser-Mapped.gml DIFF_DATA BodeEZG_Fliessgewaesser-Mapped.gml
...@@ -23,7 +23,7 @@ AddTest( ...@@ -23,7 +23,7 @@ AddTest(
NAME LARGE_MapGeometryToMeshSurface_Naegelstedt NAME LARGE_MapGeometryToMeshSurface_Naegelstedt
PATH MeshGeoToolsLib/Naegelstedt PATH MeshGeoToolsLib/Naegelstedt
EXECUTABLE MapGeometryToMeshSurface EXECUTABLE MapGeometryToMeshSurface
EXECUTABLE_ARGS -m SmallTest.vtu -i RiverNetwork.gml -o ${PROJECT_BINARY_DIR}/Tests/Data/MeshGeoToolsLib/Naegelstedt/RiverNetwork-Mapped.gml EXECUTABLE_ARGS -m SmallTest.vtu -i RiverNetwork.gml -o ${Data_BINARY_DIR}/MeshGeoToolsLib/Naegelstedt/RiverNetwork-Mapped.gml
REQUIREMENTS NOT OGS_USE_MPI REQUIREMENTS NOT OGS_USE_MPI
TESTER diff TESTER diff
DIFF_DATA RiverNetwork-Mapped.gml DIFF_DATA RiverNetwork-Mapped.gml
...@@ -33,7 +33,7 @@ AddTest( ...@@ -33,7 +33,7 @@ AddTest(
NAME postLIE NAME postLIE
PATH LIE/PostProcessing PATH LIE/PostProcessing
EXECUTABLE postLIE EXECUTABLE postLIE
EXECUTABLE_ARGS -i single_joint_pcs_0.pvd -o ${PROJECT_BINARY_DIR}/Tests/Data/LIE/PostProcessing/post_single_joint_pcs_0.pvd EXECUTABLE_ARGS -i single_joint_pcs_0.pvd -o ${Data_BINARY_DIR}/LIE/PostProcessing/post_single_joint_pcs_0.pvd
REQUIREMENTS NOT OGS_USE_MPI REQUIREMENTS NOT OGS_USE_MPI
ABSTOL 1e-14 RELTOL 1e-14 ABSTOL 1e-14 RELTOL 1e-14
TESTER vtkdiff TESTER vtkdiff
......
...@@ -236,8 +236,8 @@ if (OGS_FATAL_ABORT) ...@@ -236,8 +236,8 @@ if (OGS_FATAL_ABORT)
endif() endif()
if(OGS_BUILD_TESTS) if(OGS_BUILD_TESTS)
set(Data_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Data CACHE INTERNAL "") set(Data_SOURCE_DIR ${PROJECT_SOURCE_DIR}/Tests/lfs-data CACHE INTERNAL "")
set(Data_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Tests/Data CACHE INTERNAL "") set(Data_BINARY_DIR ${PROJECT_BINARY_DIR}/Tests/lfs-data CACHE INTERNAL "")
endif() endif()
# Logging level # Logging level
......
...@@ -62,7 +62,7 @@ if(DOXYGEN_FOUND) ...@@ -62,7 +62,7 @@ if(DOXYGEN_FOUND)
add_dependencies(doc internal_pre_doc) add_dependencies(doc internal_pre_doc)
if (doc_use_external_tools) if (doc_use_external_tools)
set(data_dir "${PROJECT_SOURCE_DIR}/Tests/Data") set(data_dir "${Data_SOURCE_DIR}")
add_custom_target(internal_pre_doc_qa_page add_custom_target(internal_pre_doc_qa_page
${BASH_TOOL_PATH} ${BASH_TOOL_PATH}
"${PROJECT_SOURCE_DIR}/scripts/doc/generate-project-file-doc-qa.sh" "${PROJECT_SOURCE_DIR}/scripts/doc/generate-project-file-doc-qa.sh"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# #
# AddTest( # AddTest(
# NAME <name of the the test> # NAME <name of the the test>
# PATH <working directory> # relative to SourceDir/Tests/Data # PATH <working directory> # relative to SourceDir/Tests/lfs-data
# EXECUTABLE <executable target> # optional, defaults to ogs # EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE_ARGS <arguments> # EXECUTABLE_ARGS <arguments>
# WRAPPER <time|memcheck|callgrind> # optional # WRAPPER <time|memcheck|callgrind> # optional
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# #
# diff-tester # diff-tester
# - DIFF_DATA <list of files to diff> # - DIFF_DATA <list of files to diff>
# # the given file is compared to a file with the same name from Tests/Data # # the given file is compared to a file with the same name from Tests/lfs-data
# #
# vtkdiff-tester # vtkdiff-tester
# - DIFF_DATA <vtk file> <data array a name> <data array b name> # - DIFF_DATA <vtk file> <data array a name> <data array b name>
......
...@@ -78,7 +78,7 @@ add_custom_target( ...@@ -78,7 +78,7 @@ add_custom_target(
DEPENDS ogs vtkdiff ctest-large-cleanup DEPENDS ogs vtkdiff ctest-large-cleanup
) )
set_directory_properties(PROPERTIES set_directory_properties(PROPERTIES
ADDITIONAL_MAKE_CLEAN_FILES ${PROJECT_BINARY_DIR}/Tests/Data ADDITIONAL_MAKE_CLEAN_FILES ${Data_BINARY_DIR}
) )
set_target_properties(ctest PROPERTIES FOLDER Testing) set_target_properties(ctest PROPERTIES FOLDER Testing)
......
#!/bin/bash #!/bin/bash
if [[ $OSTYPE == darwin* ]]; then if [[ $OSTYPE == darwin* ]]; then
find ./Tests/Data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `grealpath {}` ./tmp/{}' \; find ./Tests/lfs-data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `grealpath {}` ./tmp/{}' \;
else else
find ./Tests/Data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `realpath {}` ./tmp/{}' \; find ./Tests/lfs-data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `realpath {}` ./tmp/{}' \;
fi fi
pushd . > /dev/null pushd . > /dev/null
cd ./tmp/Tests/Data cd ./tmp/Tests/lfs-data
tar zcf ogs6-data.tar.gz ./* tar zcf ogs6-data.tar.gz ./*
mv ogs6-data.tar.gz ../../../ mv ogs6-data.tar.gz ../../../
zip -r -q ogs6-data . zip -r -q ogs6-data .
......
...@@ -32,7 +32,7 @@ A comparison of the numerical data is shown in the figure below. The numerical r ...@@ -32,7 +32,7 @@ A comparison of the numerical data is shown in the figure below. The numerical r
{{< img src="../gif/elder.gif" title="Results for numerical (OGS-5 - green, OGS-6 - white) results together with concentration distribution in the domain and mesh resolution for different time steps.">}} {{< img src="../gif/elder.gif" title="Results for numerical (OGS-5 - green, OGS-6 - white) results together with concentration distribution in the domain and mesh resolution for different time steps.">}}
[The project files are here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/elder) [The project files are here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/elder)
## Literature ## Literature
......
...@@ -33,7 +33,7 @@ A comparison of numerical and laboratory data is shown in the figure below. The ...@@ -33,7 +33,7 @@ A comparison of numerical and laboratory data is shown in the figure below. The
{{< img src="../goswami.png" title="Results for numerical (OGS5 - green, ogs6 - white) and laboratory data (black squares) together with concentration distribution in the domain and mesh resolution for steady state 1 (see original research paper).">}} {{< img src="../goswami.png" title="Results for numerical (OGS5 - green, ogs6 - white) and laboratory data (black squares) together with concentration distribution in the domain and mesh resolution for steady state 1 (see original research paper).">}}
[The project files are here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/gosami) [The project files are here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/gosami)
## Literature ## Literature
......
...@@ -33,8 +33,8 @@ Boundary conditions vary on the left side individually for each setup; right sid ...@@ -33,8 +33,8 @@ Boundary conditions vary on the left side individually for each setup; right sid
Left side boundary conditions for these two setups are pressure $p=0$ and concentration $c=1$. The *Diffusion only* setup results in the final state of the *Diffusion and Storage* setup. For the former, retardation is set to $R=0$, while for the latter, $R=1$. Left side boundary conditions for these two setups are pressure $p=0$ and concentration $c=1$. The *Diffusion only* setup results in the final state of the *Diffusion and Storage* setup. For the former, retardation is set to $R=0$, while for the latter, $R=1$.
[The *Diffusion only* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/ConcentrationDiffusionOnly.prj) [The *Diffusion only* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/ConcentrationDiffusionOnly.prj)
[The *Diffusion and Storage* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/ConcentrationDiffusionAndStorage.prj) [The *Diffusion and Storage* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/ConcentrationDiffusionAndStorage.prj)
{{< img src="../gif/DiffusionAndStorage.gif" title="*Diffusion and Storage*">}} {{< img src="../gif/DiffusionAndStorage.gif" title="*Diffusion and Storage*">}}
...@@ -42,7 +42,7 @@ Left side boundary conditions for these two setups are pressure $p=0$ and concen ...@@ -42,7 +42,7 @@ Left side boundary conditions for these two setups are pressure $p=0$ and concen
Left side boundary conditions for this setup are pressure $p=1$ and concentration $c=1$. Left side boundary conditions for this setup are pressure $p=1$ and concentration $c=1$.
[The *Diffusion, Storage, and Advection* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvection.prj) [The *Diffusion, Storage, and Advection* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvection.prj)
{{< img src="../gif/DiffusionAndStorageAndAdvection.gif" title="*Diffusion, Storage, and Advection*">}} {{< img src="../gif/DiffusionAndStorageAndAdvection.gif" title="*Diffusion, Storage, and Advection*">}}
...@@ -50,8 +50,8 @@ Left side boundary conditions for this setup are pressure $p=1$ and concentratio ...@@ -50,8 +50,8 @@ Left side boundary conditions for this setup are pressure $p=1$ and concentratio
Left side boundary conditions for these setups are pressure $p=1$ and concentration $c=1$. The latter is once given over the full left side, and in a second setup over half of the left side. Longitudinal and transverse dispersivity is $\alpha_l = 1 m$ and $\alpha_t = 0.1 m$. Left side boundary conditions for these setups are pressure $p=1$ and concentration $c=1$. The latter is once given over the full left side, and in a second setup over half of the left side. Longitudinal and transverse dispersivity is $\alpha_l = 1 m$ and $\alpha_t = 0.1 m$.
[The *Diffusion, Storage, Advection, and Dispersion* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDispersion.prj) [The *Diffusion, Storage, Advection, and Dispersion* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDispersion.prj)
[The *Diffusion, Storage, Advection, and Dispersion Half* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDispersionHalf.prj) [The *Diffusion, Storage, Advection, and Dispersion Half* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDispersionHalf.prj)
{{< img src="../gif/DiffusionAndStorageAndAdvectionAndDispersion.gif" title="*Diffusion, Storage, Advection, and Dispersion*">}} {{< img src="../gif/DiffusionAndStorageAndAdvectionAndDispersion.gif" title="*Diffusion, Storage, Advection, and Dispersion*">}}
{{< img src="../gif/DiffusionAndStorageAndAdvectionAndDispersionHalf.gif" title="*Diffusion, Storage, Advection, and Dispersion Half*">}} {{< img src="../gif/DiffusionAndStorageAndAdvectionAndDispersionHalf.gif" title="*Diffusion, Storage, Advection, and Dispersion Half*">}}
...@@ -60,7 +60,7 @@ Left side boundary conditions for these setups are pressure $p=1$ and concentrat ...@@ -60,7 +60,7 @@ Left side boundary conditions for these setups are pressure $p=1$ and concentrat
Boundary condition for this setup is pressure $p=0$ for the top left corner and concentration $c=1$ for half of the left side. Relation between concentration and gravity is $\beta_c = 1$. Boundary condition for this setup is pressure $p=0$ for the top left corner and concentration $c=1$ for half of the left side. Relation between concentration and gravity is $\beta_c = 1$.
[The *Diffusion, Storage, Gravity, and Dispersion* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndGravityAndDispersionHalf.prj) [The *Diffusion, Storage, Gravity, and Dispersion* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndGravityAndDispersionHalf.prj)
{{< img src="../gif/DiffusionAndStorageAndGravityAndDispersionHalf.gif" title="*Diffusion, Storage, Gravity, and Dispersion Half*">}} {{< img src="../gif/DiffusionAndStorageAndGravityAndDispersionHalf.gif" title="*Diffusion, Storage, Gravity, and Dispersion Half*">}}
...@@ -69,6 +69,6 @@ Boundary condition for this setup is pressure $p=0$ for the top left corner and ...@@ -69,6 +69,6 @@ Boundary condition for this setup is pressure $p=0$ for the top left corner and
Left side boundary conditions for this setup are pressure $p=1$ and concentration $c=1$. Decay rate is $\theta = 0.001 s^{-1}$. Left side boundary conditions for this setup are pressure $p=1$ and concentration $c=1$. Decay rate is $\theta = 0.001 s^{-1}$.
[The *Diffusion, Storage, Advection, and Decay* project file is here. ](../../../../../Tests/Data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDecay.prj) [The *Diffusion, Storage, Advection, and Decay* project file is here. ](../../../../../Tests/lfs-data/Parabolic/ComponentTransport/SimpleSynthetics/DiffusionAndStorageAndAdvectionAndDecay.prj)
{{< img src="../gif/DiffusionAndStorageAndAdvectionAndDecay.gif" title="*Diffusion, Storage, Advection, and Decay*">}} {{< img src="../gif/DiffusionAndStorageAndAdvectionAndDecay.gif" title="*Diffusion, Storage, Advection, and Decay*">}}
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