Skip to content

Commit

Permalink
add mpi to the list of optional 1st argumements
Browse files Browse the repository at this point in the history
mpi is the default, but now we have mpif08 as an option I think
./quickbuild.sh mpi should be an allowable thing for a user to run
  • Loading branch information
hkershaw-brown committed Oct 23, 2023
1 parent 89621bc commit 851978d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions build_templates/buildfunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ function print_usage() {
echo " quickbuild.sh clean : clean the build"
echo " quickbuild.sh help : print help message"
echo " "
echo " quickbuild.sh [nompi/mpif08] [program] : optional arguments "
echo " [nompi] build without mpi"
echo " [mpif08] build with mpi using mpif_f08"
echo " [program] build a single program"
echo " quickbuild.sh [nompi/nompi/mpif08] [program] : optional arguments "
echo " [mpi] build with mpi (default)"
echo " [nompi] build without mpi"
echo " [mpif08] build with mpi using mpif_f08"
echo " [program] build a single program"
echo " "
echo " Example 1. Build filter without mpi:"
echo " quickbuild.sh nompi filter"
Expand Down Expand Up @@ -105,7 +106,7 @@ mpisrc=mpi
windowsrc=no_cray_win
m="-w" # mkmf wrapper arg

# if the first argument is help, nompi, mpif08, clean
# if the first argument is help, nompi, mpi, mpif08, clean
case $1 in
help)
print_usage
Expand All @@ -118,6 +119,12 @@ case $1 in
shift 1
;;

mpi)
mpisrc="mpi"
windowsrc="no_cray_win"
shift 1
;;

mpif08)
mpisrc="mpif08"
windowsrc="no_cray_winf08"
Expand Down

0 comments on commit 851978d

Please sign in to comment.