Skip to content

Commit

Permalink
Merge pull request #40 from suzanmanasreh/cmake
Browse files Browse the repository at this point in the history
Cmake
  • Loading branch information
suzanmanasreh authored Jun 19, 2024
2 parents 3f0d46b + 08c302a commit 1eedfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
# use mkl option
- name: Build Packages
run: |
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-c/4.9.2-mva2-hdf5-1.14 netcdf-cxx/4.2-mva2-hdf5-1.14 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva cmake
bash rbc.sh install
# will stop on any errors
- name: Compile Cases
run: |
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-c/4.9.2-mva2-hdf5-1.14 netcdf-cxx/4.2-mva2-hdf5-1.14 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva cmake
set -e -x
export PETSC_DIR=`pwd`/RBC3D/packages/petsc-3.19.6
export PETSC_ARCH=arch-linux-c-opt
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bash rbc.sh install
Or if you're on COC-ICE, you just need to load different modules to run the installer script.

```shell
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva2
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva2 cmake
bash rbc.sh install
```

Expand All @@ -50,6 +50,7 @@ Then to execute and run a case, you can:
mkdir build
cd build
cmake ..
cd case
make case
srun -n 1 ./initcond
srun ./tube
Expand Down

0 comments on commit 1eedfd8

Please sign in to comment.