Skip to content

Commit

Permalink
MPIEXEC in examples/f03 directory, also set FC in fortran build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 28, 2020
1 parent e835926 commit 6ec562a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/a4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
echo 'export PATH=/home/runner/mpich/bin:$PATH' > .bashrc
source .bashrc
export CC=/home/runner/mpich/bin/mpicc
export FC=/home/runner/mpich/bin/mpifort
autoreconf -i
./configure --enable-fortran
make -j check
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ AC_CONFIG_FILES([tests/general/run_tests.sh], [chmod ugo+x tests/general/run_tes
AC_CONFIG_FILES([tests/performance/run_tests.sh], [chmod ugo+x tests/performance/run_tests.sh])
AC_CONFIG_FILES([tests/unit/run_tests.sh], [chmod ugo+x tests/unit/run_tests.sh])
AC_CONFIG_FILES([examples/c/run_tests.sh], [chmod ugo+x examples/c/run_tests.sh])
AC_CONFIG_FILES([examples/f03/run_tests.sh], [chmod ugo+x examples/f03/run_tests.sh])

# Args:
# 1. netcdf_meta.h variable
Expand Down
4 changes: 3 additions & 1 deletion examples/f03/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ TESTS = run_tests.sh
endif # RUN_TESTS

# Distribute the test script.
EXTRA_DIST = CMakeLists.txt run_tests.sh
EXTRA_DIST = CMakeLists.txt run_tests.sh.in

# Clean up files produced during testing.
CLEANFILES = *.nc *.log *.mod

DISTCLEANFILES = run_tests.sh
2 changes: 1 addition & 1 deletion examples/f03/run_tests.sh → examples/f03/run_tests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for TEST in $PIO_TESTS
do
success1=false
echo "running ${TEST}"
mpiexec -n 4 ./${TEST} && success1=true
@WITH_MPIEXEC@ -n 4 ./${TEST} && success1=true
if test $success1 = false; then
break
fi
Expand Down

0 comments on commit 6ec562a

Please sign in to comment.