From 38335c82e0a07658b59fda52dfc7f03273dd45b5 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin Date: Mon, 23 Dec 2024 17:14:18 +0100 Subject: [PATCH] Update setup.sh --- setup.sh | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/setup.sh b/setup.sh index cbdbcf1a2..edfc96f68 100755 --- a/setup.sh +++ b/setup.sh @@ -2,25 +2,22 @@ rm -rf build # conda --version # conda env create -f environment-dev.yml -export FC=gfortran -export FCFLAGS="-ffree-line-length-none -m64 -std=f2008 -march=native -fbounds-check -fmodule-private -fimplicit-none -finit-real=nan" -export RRTMGP_DATA_VERSION=v1.8.2 -export FP_MODEL=DP -export RTE_CBOOL=ON -export RTE_KERNELS=default -export FAILURE_THRESHOLD=7.e-4 +FC=gfortran +FFLAGS='-ffree-line-length-none -m64 -std=f2008 -march=native -fbounds-check -fmodule-private -fimplicit-none -finit-real=nan' +RTE_ENABLE_SP=OFF +KERNEL_MODE=default +FAILURE_THRESHOLD='7.e-4' cmake -S . -B build -G "Ninja" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_Fortran_COMPILER=$FC \ - -DCMAKE_Fortran_FLAGS="$FCFLAGS" \ - -DRRTMGP_DATA_VERSION=$RRTMGP_DATA_VERSION \ - -DPRECISION=$FP_MODEL \ - -DUSE_C_BOOL=$RTE_CBOOL \ - -DKERNEL_MODE=$RTE_KERNELS \ - -DENABLE_TESTS=ON \ + -DCMAKE_Fortran_FLAGS="$FFLAGS" \ + -DKERNEL_MODE=$KERNEL_MODE \ + -DBUILD_TESTING=ON \ -DFAILURE_THRESHOLD=$FAILURE_THRESHOLD \ -DCMAKE_BUILD_TYPE=Release # cmake --build build --target all --parallel -# ctest --test-dir build/ -V +# The --test-dir option is available only starting CMake 3.20: +# ctest -V --test-dir build