Skip to content

Commit

Permalink
Automatically set FC to mpifort if FC is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Jan 13, 2021
1 parent 5d3e37a commit afbb3f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MPI/build_with_make_and_run.x
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit afbb3f8

Please sign in to comment.