Skip to content

Rename k0 to curv_k0 in examples #119

Rename k0 to curv_k0 in examples

Rename k0 to curv_k0 in examples #119

Workflow file for this run

name: build-test
on:
push:
branches:
- develop
- ci-test
pull_request:
branches:
- master
- develop
jobs:
focus-build:
runs-on: ubuntu-latest
name: FOCUS build and test
steps:
# To use this repository's private action,
# you must check out the repository
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt-get update
apt list --installed gfortran
echo $FC
sudo apt-get install gfortran
sudo apt-get install libopenmpi-dev
sudo apt-get install m4
sudo apt-get install libhdf5-openmpi-dev
# which mpif90
# ls /usr/lib/x86_64-linux-gnu/hdf5/openmpi
# apt list --installed
- name: Compile
run: |
cd $GITHUB_WORKSPACE/sources
echo "Checking prerequisites"
echo "Present directory: $PWD"
echo "MPI Version: " && mpif90 --version
echo "HDF5_HOME: $HDF5_HOME"
make clean; make CC=gfortran ; make CC=gfortran dfocus
mpiexec $GITHUB_WORKSPACE/bin/xfocus -h
env:
HDF5_HOME: /usr/lib/x86_64-linux-gnu/hdf5/openmpi
- name: Run check_deriv
run: |
cd $GITHUB_WORKSPACE/examples/check_deriv && mpiexec ../../bin/xfocus deriv