@@ -8,7 +8,7 @@ find_or_install()
88 package_executable_array=(
99 " gcc:gfortran"
1010 " cmake:cmake"
11- " mpich:mpif90 "
11+ " mpich:mpifort "
1212 " flex:flex"
1313 " bison:yacc"
1414 " m4:m4"
@@ -121,11 +121,11 @@ find_or_install()
121121 # MPIFC, MPICC, and MPICXX environment variables. Every branch must also manage the
122122 # dependency stack.
123123
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
125125 if [[ ! -z " ${arg_M:- } " ]]; then
126126
127127 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
129129 export MPICC=" ${arg_M} " /bin/mpicc
130130 export MPICXX=" ${arg_M} " /bin/mpicxx
131131 # Halt the recursion
@@ -136,7 +136,7 @@ find_or_install()
136136 elif [[ " $script_installed_package " == true ]]; then
137137
138138 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
140140 export MPICC=$package_install_path /bin/mpicc
141141 export MPICXX=$package_install_path /bin/mpicxx
142142 # Halt the recursion
@@ -147,8 +147,8 @@ find_or_install()
147147 elif [[ " $package_in_path " == " true" ]]; then
148148
149149 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)
152152 if [[ " $first_three_characters " != " GNU" ]]; then
153153 printf " no.\n"
154154 # Trigger 'find_or_install gcc' and subsequent build of $package
@@ -162,7 +162,7 @@ find_or_install()
162162
163163 info " -f (or --with-fortran) argument detected with value ${arg_f} "
164164 printf " yes.\n %s: Using the specified %s.\n" " $this_script " " $executable "
165- export MPIFC=mpif90
165+ export MPIFC=mpifort
166166 export MPICC=mpicc
167167 export MPICXX=mpicxx
168168
@@ -185,7 +185,7 @@ find_or_install()
185185 fi
186186 if [[ " $acceptable " == " ${is_true:- } " ]]; then
187187 printf " yes.\n %s: Using the $executable found in the PATH.\n" " $this_script "
188- export MPIFC=mpif90
188+ export MPIFC=mpifort
189189 export MPICC=mpicc
190190 export MPICXX=mpicxx
191191
@@ -637,8 +637,8 @@ find_or_install()
637637 export LD_LIBRARY_PATH=" $gfortran_lib_paths :$LD_LIBRARY_PATH "
638638 fi
639639 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 "
642642 echo " $this_script : export MPICC= $package_install_path /bin/mpicc"
643643 export MPICC=" $package_install_path /bin/mpicc"
644644 echo " $this_script : export MPICXX=$package_install_path /bin/mpicxx"
0 commit comments