Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
skosukhin committed Dec 23, 2024
1 parent d77e74c commit 38335c8
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 38335c8

Please sign in to comment.