@@ -28,8 +28,8 @@ usage()
28
28
echo " * appear before all other arguments,"
29
29
echo " * be the only Fortran source file in the argument list,"
30
30
echo " * have a name of the form *.f90, *.F90, *.f, or *.F. "
31
- echo " c. The environment variable 'FC ' must be empty or point to a Fortran compiler/linker. "
32
- echo " d. If 'FC ' is empty, a default value of 'mpif90' is used. "
31
+ echo " c. The environment variable 'CAFC ' must be empty or point to a Fortran compiler/linker. "
32
+ echo " d. If 'CAFC ' is empty, a default value of 'mpif90' is used. "
33
33
echo ""
34
34
echo " 2. With non-OCA CAF compilers (Intel or Cray),"
35
35
echo " a. Observe restrictions 1a-d above."
@@ -60,9 +60,9 @@ if [ $# == 0 ]; then
60
60
exit 1
61
61
fi
62
62
63
- # Default to "mpif90" Fortran compiler if environment variable FC has zero length:
64
- if [ -z "$FC " ]; then
65
- FC =mpif90
63
+ # Default to "mpif90" Fortran compiler if environment variable CAFC has zero length:
64
+ if [ -z "$CAFC " ]; then
65
+ CAFC =mpif90
66
66
fi
67
67
68
68
# TODO -- improve the syntax of the "set" command below to accepted an unlimited number of arguments
@@ -80,14 +80,14 @@ if [[ $1 == '-v' || $1 == '-V' || $1 == '--version' ]]; then
80
80
echo "the file named COPYRIGHT-BSD3."
81
81
echo ""
82
82
elif [[ $1 == '-w' || $1 == '--wrapping' || $1 == '--wraps' ]]; then
83
- echo "caf wraps FC=$FC "
83
+ echo "caf wraps CAFC=$CAFC "
84
84
elif [[ $1 == '-h' || $1 == '--help' ]]; then
85
85
# Print usage information
86
86
usage | less
87
87
exit 1
88
88
elif [ "$caf_compiler" = "true" ]; then
89
89
# Nothing to do other than invoke the compiler with all the command-line arguments:
90
- $FC "$@" -L $caf_lib_dir $link_args
90
+ $CAFC "$@" -L $caf_lib_dir $link_args
91
91
else
92
92
# Verify that a file with the .f90, .F90, .f, or .F extension is the first argument:
93
93
src_extension=`echo "$1" | cut -f2 -d'.'`
108
108
# Replace the file name in command-line argment 1 with the new name beofre invoking the compiler:
109
109
set -- "caf-$1" "${@:2:max_arguments}"
110
110
# Invoke the compiler along with all command-line arguments:
111
- $FC "$@" -L $caf_lib_dir -I $caf_mod_dir $link_args
111
+ $CAFC "$@" -L $caf_lib_dir -I $caf_mod_dir $link_args
112
112
else
113
113
# Print usage information upon encountering an unknowon CAF source file extension
114
114
usage | less
0 commit comments