Fixes issue #6 with boundaries and memory #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run GRTresna Tests (Clang) | |
on: [push] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
mpi: ['TRUE', 'FALSE'] | |
fail-fast: false | |
name: Clang MPI = ${{ matrix.mpi }} | |
env: | |
CHOMBO_HOME: ${{ github.workspace }}/Chombo/lib | |
OMP_NUM_THREADS: 1 | |
OMPI_CXX: clang++ | |
GRCHOMBO_HOME: ${{ github.workspace }}/GRChombo | |
BUILD_ARGS: MPI=${{ matrix.mpi}} | |
steps: | |
- name: Checkout Chombo | |
uses: actions/checkout@v2 | |
with: | |
repository: GRChombo/Chombo | |
path: Chombo | |
- name: Checkout GRChombo | |
uses: actions/checkout@v2 | |
with: | |
repository: GRChombo/GRChombo | |
path: GRChombo | |
- name: Checkout GRTresna | |
uses: actions/checkout@v2 | |
with: | |
path: GRTresna | |
- name: Install Chombo dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y --no-install-recommends install csh libhdf5-dev libhdf5-openmpi-dev openmpi-bin libblas-dev liblapack-dev libgetopt-complete-perl | |
- name: Build Chombo | |
run: | | |
if [[ "${{ matrix.mpi }}" == "TRUE" ]]; then | |
MAKE_DEFS_FILE=$GRCHOMBO_HOME/InstallNotes/MakeDefsLocalExamples/ubuntu-clang.Make.defs.local | |
else | |
MAKE_DEFS_FILE=$GRCHOMBO_HOME/InstallNotes/MakeDefsLocalExamples/ubuntu-clang-nompi.Make.defs.local | |
fi | |
cp $MAKE_DEFS_FILE $CHOMBO_HOME/mk/Make.defs.local | |
make -j 4 AMRTimeDependent AMRTools BaseTools BoxTools $BUILD_ARGS | |
working-directory: ${{ env.CHOMBO_HOME }} | |
- name: Build GRTresna Tests | |
run: make all -j 4 $BUILD_ARGS | |
working-directory: ${{ github.workspace }}/GRTresna/Tests/PeriodicScalarFieldTest | |
- name: Run GRTresna Tests | |
run: | | |
if [[ "${{ matrix.mpi }}" == "TRUE" ]]; then | |
make run -j 2 $BUILD_ARGS RUN='mpirun -np 2 --oversubscribe ./' | |
else | |
make run -j 2 $BUILD_ARGS | |
fi | |
working-directory: ${{ github.workspace }}/GRTresna/Tests/PeriodicScalarFieldTest |