From afbb3f8610227ba45ad9ab50915825d94f0ddf8f Mon Sep 17 00:00:00 2001 From: kvrigor Date: Wed, 13 Jan 2021 13:23:27 +0100 Subject: [PATCH] Automatically set FC to mpifort if FC is not set --- MPI/build_with_make_and_run.x | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MPI/build_with_make_and_run.x b/MPI/build_with_make_and_run.x index 6efe25f..6074782 100755 --- a/MPI/build_with_make_and_run.x +++ b/MPI/build_with_make_and_run.x @@ -2,7 +2,11 @@ make clean -make all +if [[ ! $FC || -z $FC || $FC == " " ]]; then + FC=mpifort make all +else + make all +fi mpirun -np 4 ./tests/test_halo