Skip to content

Add verbosity to match_periodic_faces() #685

Add verbosity to match_periodic_faces()

Add verbosity to match_periodic_faces() #685

Workflow file for this run

name: parRSB tests
on:
push:
branch: [main]
pull_request:
branch: [main]
env:
GITHUB.TOKEN: ${{ secrets.token }}
CIDIR: parRSB-github-ci
EXAMPLESDIR: build/examples
MPIEXE: "mpirun --oversubscribe"
jobs:
parRSB:
runs-on: ubuntu-latest
strategy:
matrix:
test: [box_2x2x2, pyramid, tgv, e3q, solid, ethier, vortex, expansion]
np: [1, 2, 3, 4]
fail-fast: false
name: "parRSB: ${{ matrix.test }}, NP = ${{ matrix.np }}"
env:
GSVER: 1.0.7
CC: mpicc
steps:
- uses: actions/checkout@v3
- name: Install apt dependencies
shell: bash
run: |
sudo apt -y update
sudo apt install -y openmpi-bin libopenmpi-dev
sudo apt install -y libblas-dev liblapack-dev
sudo apt install -y build-essential
- name: Build parRSB and clone tests
shell: bash
run: |
# Build gslib
git clone https://github.com/Nek5000/gslib.git
make -C gslib -j4
# Build parRSB
export GSLIBPATH=`pwd`/gslib/build/
make -j4 examples
# Clone tests
git clone https://github.com/thilinarmtb/${CIDIR}.git
- name: gencon
shell: bash
run: |
cp ${EXAMPLESDIR}/gencon ${CIDIR}/${{ matrix.test }}
cd ${CIDIR}/${{ matrix.test }}
tol=(`cat test.txt | grep tol`); tol=${tol[2]}
${MPIEXE} -np ${{ matrix.np }} ./gencon --mesh ${{ matrix.test }} \
--tol=${tol} --dump=0 --test=1
- name: genmap-lanczos
if: always()
shell: bash
run: |
export PARRSB_RSB_ALGO=0
export PARRSB_VERBOSE_LEVEL=2
cp ${EXAMPLESDIR}/genmap ${CIDIR}/${{ matrix.test }}
cd ${CIDIR}/${{ matrix.test }}
tol=(`cat test.txt | grep tol`); tol=${tol[2]}
${MPIEXE} -np ${{ matrix.np }} ./genmap --mesh ${{ matrix.test }} \
--tol=${tol} --dump=0 --test=1
- name: genmap-mg-factor-2
if: always()
shell: bash
run: |
export PARRSB_RSB_ALGO=1
export PARRSB_RSB_MG_FACTOR=2
export PARRSB_VERBOSE_LEVEL=2
cp ${EXAMPLESDIR}/genmap ${CIDIR}/${{ matrix.test }}
cd ${CIDIR}/${{ matrix.test }}
tol=(`cat test.txt | grep tol`); tol=${tol[2]}
${MPIEXE} -np ${{ matrix.np }} ./genmap --mesh ${{ matrix.test }} \
--tol=${tol} --dump=0 --test=1
- name: genmap-mg-factor-4
if: always()
shell: bash
run: |
export PARRSB_RSB_ALGO=1
export PARRSB_RSB_MG_FACTOR=4
export PARRSB_VERBOSE_LEVEL=2
cp ${EXAMPLESDIR}/genmap ${CIDIR}/${{ matrix.test }}
cd ${CIDIR}/${{ matrix.test }}
tol=(`cat test.txt | grep tol`); tol=${tol[2]}
${MPIEXE} -np ${{ matrix.np }} ./genmap --mesh ${{ matrix.test }} \
--tol=${tol} --dump=0 --test=1