@@ -8,7 +8,7 @@ find_or_install()
8
8
package_executable_array=(
9
9
" gcc:gfortran"
10
10
" cmake:cmake"
11
- " mpich:mpif90 "
11
+ " mpich:mpifort "
12
12
" flex:flex"
13
13
" bison:yacc"
14
14
" m4:m4"
@@ -121,11 +121,11 @@ find_or_install()
121
121
# MPIFC, MPICC, and MPICXX environment variables. Every branch must also manage the
122
122
# dependency stack.
123
123
124
- # If the user specified a Fortran compiler, verify that mpif90 wraps the specified compiler
124
+ # If the user specified a Fortran compiler, verify that mpifort wraps the specified compiler
125
125
if [[ ! -z " ${arg_M:- } " ]]; then
126
126
127
127
echo -e " $this_script : Using the $package specified by -M or --with-mpi: ${arg_M} \n"
128
- export MPIFC=" ${arg_M} " /bin/mpif90
128
+ export MPIFC=" ${arg_M} " /bin/mpifort
129
129
export MPICC=" ${arg_M} " /bin/mpicc
130
130
export MPICXX=" ${arg_M} " /bin/mpicxx
131
131
# Halt the recursion
@@ -136,7 +136,7 @@ find_or_install()
136
136
elif [[ " $script_installed_package " == true ]]; then
137
137
138
138
echo -e " $this_script : Using the $package installed by $this_script \n"
139
- export MPIFC=$package_install_path /bin/mpif90
139
+ export MPIFC=$package_install_path /bin/mpifort
140
140
export MPICC=$package_install_path /bin/mpicc
141
141
export MPICXX=$package_install_path /bin/mpicxx
142
142
# Halt the recursion
@@ -147,8 +147,8 @@ find_or_install()
147
147
elif [[ " $package_in_path " == " true" ]]; then
148
148
149
149
echo -e " $this_script : Checking whether $executable in PATH wraps gfortran... "
150
- mpif90_version_header =$( mpif90 --version | head -1)
151
- first_three_characters=$( echo " $mpif90_version_header " | cut -c1-3)
150
+ mpifort_version_header =$( mpifort --version | head -1)
151
+ first_three_characters=$( echo " $mpifort_version_header " | cut -c1-3)
152
152
if [[ " $first_three_characters " != " GNU" ]]; then
153
153
printf " no.\n"
154
154
# Trigger 'find_or_install gcc' and subsequent build of $package
@@ -162,7 +162,7 @@ find_or_install()
162
162
163
163
info " -f (or --with-fortran) argument detected with value ${arg_f} "
164
164
printf " yes.\n %s: Using the specified %s.\n" " $this_script " " $executable "
165
- export MPIFC=mpif90
165
+ export MPIFC=mpifort
166
166
export MPICC=mpicc
167
167
export MPICXX=mpicxx
168
168
@@ -185,7 +185,7 @@ find_or_install()
185
185
fi
186
186
if [[ " $acceptable " == " ${is_true:- } " ]]; then
187
187
printf " yes.\n %s: Using the $executable found in the PATH.\n" " $this_script "
188
- export MPIFC=mpif90
188
+ export MPIFC=mpifort
189
189
export MPICC=mpicc
190
190
export MPICXX=mpicxx
191
191
@@ -637,8 +637,8 @@ find_or_install()
637
637
export LD_LIBRARY_PATH=" $gfortran_lib_paths :$LD_LIBRARY_PATH "
638
638
fi
639
639
elif [[ $package == " mpich" ]]; then
640
- echo " $this_script : export MPIFC=$package_install_path /bin/mpif90 "
641
- export MPIFC=" $package_install_path /bin/mpif90 "
640
+ echo " $this_script : export MPIFC=$package_install_path /bin/mpifort "
641
+ export MPIFC=" $package_install_path /bin/mpifort "
642
642
echo " $this_script : export MPICC= $package_install_path /bin/mpicc"
643
643
export MPICC=" $package_install_path /bin/mpicc"
644
644
echo " $this_script : export MPICXX=$package_install_path /bin/mpicxx"
0 commit comments