Skip to content

Commit

Permalink
see runner
Browse files Browse the repository at this point in the history
  • Loading branch information
suzanmanasreh committed Jun 22, 2024
1 parent 7e68bec commit ffb5b8b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/phoenix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Test on Phoenix'

on:
pull_request:
workflow_dispatch:

jobs:
self:
name: Phoenix Runner
runs-on:
labels: gt
if: github.repository == 'Comp-Physics/RBC3D'
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4

# use mkl option
- name: Build Packages
run: |
ml gcc mvapich2 mkl python/3.9.12-rkxvr6 netcdf-fortran fftw cmake
./rbc.sh install
# will stop on any errors
- name: Compile Cases
run: |
ml gcc mvapich2 mkl python/3.9.12-rkxvr6 netcdf-fortran fftw cmake
set -e -x
export PETSC_DIR=`pwd`/packages/petsc-3.19.6
export PETSC_ARCH=arch-linux-c-opt
mkdir build
cd build
cmake ..
make
echo "/common and all cases in /examples compiled successfully!"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ libcommon.a
field
packages
traction
build
build
spherocytes
2 changes: 1 addition & 1 deletion examples/case/initcond.F90
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ program InitCond
xc(1:2) = 0.
xc(3) = lengspacing*(iz - 0.5)
print *, 'Xc', iz, xc

rbc => rbcs(iz)
rbc%celltype = 1
call Rbc_Create(rbc, nlat0, dealias)
Expand Down
9 changes: 6 additions & 3 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ tar -xf petsc-3.19.tar.gz
cd petsc-3.19.6

# if these configure options don't work, it's probably a path issue
./configure --with-cc=mpicc \
--with-cxx=mpicxx \
--with-fc=mpif90 \
./configure --with-mpi-dir=$MPI_ROOT \
--with-fortran-datatypes \
--with-debugging=0 \
--COPTFLAGS=-g -O3 -march=native -mtune=native \
Expand All @@ -24,6 +22,11 @@ cd petsc-3.19.6
--with-mpiexec=srun \
--with-x11=0 --with-x=0 --with-windows-graphics=0

if (($?)); then
error "PETSc configure failed"
exit 1
fi

make PETSC_DIR=`pwd` PETSC_ARCH=arch-linux-c-opt all
make PETSC_DIR=`pwd` PETSC_ARCH=arch-linux-c-opt check

Expand Down

0 comments on commit ffb5b8b

Please sign in to comment.