Skip to content
Snippets Groups Projects
Commit b57aa683 authored by Soeren Peters's avatar Soeren Peters
Browse files

Adjust cpu regression test to new schema

parent 9cdd2ef2
No related branches found
No related tags found
1 merge request!209Unified Refinement (CF and FC) for gpu and cpu.
#!/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"
#!/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"
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