Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
aad2626e
Commit
aad2626e
authored
2 years ago
by
Soeren Peters
Browse files
Options
Downloads
Patches
Plain Diff
add comments
parent
16147c93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!147
Add regression test with fieldcompare with corresponding CI job.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
regression-tests/driven_cavity_test.sh
+11
-3
11 additions, 3 deletions
regression-tests/driven_cavity_test.sh
regression-tests/regression-tests.sh
+17
-2
17 additions, 2 deletions
regression-tests/regression-tests.sh
with
28 additions
and
5 deletions
regression-tests/driven_cavity_test.sh
+
11
−
3
View file @
aad2626e
#!/bin/bash
#################################
# Driven Cavity Regression Test
#################################
# build VirtualFluids accordingly to our specific test scenario.
# in this case adding -DUSER_APPS="apps/gpu/LBM/DrivenCavity to the cmake command is not necessary, because the DrivenCavity is added to VirtualFluids by default.
mkdir
-p
build
cmake
-B
build
--preset
=
gpu_make
-DCMAKE_CUDA_ARCHITECTURES
=
75
#-DUSER_APPS="apps/gpu/LBM/DrivenCavity"
cd
build
&&
make
-j
8
&&
cd
..
# execute VirtualFluids
./build/bin/DrivenCavity
# set the path to the produced data
PATH_TO_DIR
=
output/DrivenCavity
PATH_TO_REFERENCE_DIR
=
regression-tests/reference_data/regression_tests_gpu/DrivenCavity
# set the path to the reference data.
# `regression-tests/reference_data` is fix `regression_tests/gpu/DrivenCavity_2Levels` must match the structure in https://github.com/irmb/test_data:
PATH_TO_REFERENCE_DIR
=
regression-tests/reference_data/regression_tests/gpu/DrivenCavity_2Levels
# execute fieldcompare (A more comprehensive manual can be found here https://gitlab.com/dglaeser/fieldcompare)
fieldcompare
dir
$PATH_TO_DIR
--reference
$PATH_TO_REFERENCE_DIR
--include-files
"*.vtu"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
regression-tests/regression-tests.sh
+
17
−
2
View file @
aad2626e
#!/bin/bash
#################################
# VirtualFludis regression tests
#################################
# 1. Cloning the reference data from github
mkdir
-p
regression-tests/reference_data
git clone https://github.com/irmb/test_data regression-tests/reference_data
# 2. set up the python environnement
# by cloning our meshio patch and fieldcompare into a venv
python3
-m
venv .venv
source
.venv/bin/activate
pip
install
rich
pip
install
git+https://github.com/soerenPeters/meshio@update-pyproject-version
pip
install
git+https://gitlab.com/dglaeser/fieldcompare
# 3. Running the specific tests
./regression-tests/driven_cavity_test.sh
./regression-tests/driven_cavity_test.sh
\ No newline at end of file
# How to add a new regression test?
# 1. setup the specfic simulation and run it to create reference data.
# 2. fork https://github.com/irmb/test_data and create a pull request containing the reference data.
# 3. copy ./regression-tests/driven_cavity_test.sh and adjust the file accordingly to the new test scenario.
# 4. execute this file from here accordingly to line 18.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment