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
b57aa683
Commit
b57aa683
authored
2 years ago
by
Soeren Peters
Browse files
Options
Downloads
Patches
Plain Diff
Adjust cpu regression test to new schema
parent
9cdd2ef2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!209
Unified Refinement (CF and FC) for gpu and cpu.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
regression-tests/flow_around_cylinder.sh
+0
-24
0 additions, 24 deletions
regression-tests/flow_around_cylinder.sh
regression-tests/flow_around_cylinder_test.sh
+19
-0
19 additions, 0 deletions
regression-tests/flow_around_cylinder_test.sh
with
19 additions
and
24 deletions
regression-tests/flow_around_cylinder.sh
deleted
100755 → 0
+
0
−
24
View file @
9cdd2ef2
#!/bin/bash
#################################
# Regression Test for Flow Around Cylinder
#################################
# 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
=
make_cpu
-DCMAKE_BUILD_TYPE
=
Release
#-DUSER_APPS="apps/cpu/FlowAroundCylinder"
cmake
--build
build
--parallel
8
# execute VirtualFluids
./build/bin/FlowAroundCylinder ./apps/cpu/FlowAroundCylinder/cylinder.cfg
# set the path to the produced data
PATH_TO_DIR
=
output/FlowAroundCylinder
# 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
=
reference_data/regression_tests/cpu/FlowAroundCylinder_2023_04
# execute fieldcompare (A more comprehensive manual can be found here https://gitlab.com/dglaeser/fieldcompare)
fieldcompare
dir
$PATH_TO_DIR
$PATH_TO_REFERENCE_DIR
--include-files
"*.vtu"
This diff is collapsed.
Click to expand it.
regression-tests/flow_around_cylinder_test.sh
0 → 100755
+
19
−
0
View file @
b57aa683
#!/bin/bash
source
./regression-tests/__regression_test_executer.sh
# 1. set reference data directory (must match the folder structure in https://github.com/irmb/test_data)
REFERENCE_DATA_DIR
=
regression_tests/cpu/FlowAroundCylinder_2023_04
# 2. set cmake flags for the build of VirtualFluids
CMAKE_FLAGS
=
"--preset=make_cpu -DCMAKE_BUILD_TYPE=Release"
# 3. define the application to be executed
APPLICATION
=
"./build/bin/FlowAroundCylinder ./apps/cpu/FlowAroundCylinder/cylinder.cfg"
# 4. set the path to the produced data
RESULT_DATA_DIR
=
output/FlowAroundCylinder
run_regression_test
"
$REFERENCE_DATA_DIR
"
"
$CMAKE_FLAGS
"
"
$APPLICATION
"
"
$RESULT_DATA_DIR
"
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