1046 |
FFLAGS= |
FFLAGS= |
1047 |
FOPTIM= |
FOPTIM= |
1048 |
FEXTRAFLAGS= |
FEXTRAFLAGS= |
1049 |
|
USE_EXTENDED_SRC= |
1050 |
|
EXTENDED_SRC_FLAG= |
1051 |
CFLAGS= |
CFLAGS= |
1052 |
KFLAGS1= |
KFLAGS1= |
1053 |
KFLAGS2= |
KFLAGS2= |
1404 |
fi |
fi |
1405 |
|
|
1406 |
# Find the MITgcm ${THISVER} |
# Find the MITgcm ${THISVER} |
1407 |
if test -f "${ROOTDIR}/doc/tag-index" ; then |
version_file="${ROOTDIR}/doc/tag-index" |
1408 |
THISVER=`grep '^checkpoint' ${ROOTDIR}/doc/tag-index | head -1` |
if test -f $version_file ; then |
1409 |
|
THISVER=`grep '^checkpoint' $version_file | head -1` |
1410 |
|
#- remove ./BUILD_INFO.h file if older than version_file |
1411 |
|
if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then |
1412 |
|
echo " remove ./BUILD_INFO.h (older than ${version_file})" |
1413 |
|
rm -f ./BUILD_INFO.h |
1414 |
|
fi |
1415 |
fi |
fi |
1416 |
|
|
1417 |
if test "x$MAKEFILE" = x ; then |
if test "x$MAKEFILE" = x ; then |
1648 |
INCLUDES="$INCLUDES $GSLINC" |
INCLUDES="$INCLUDES $GSLINC" |
1649 |
LIBS="$LIBS $GSLLIB" |
LIBS="$LIBS $GSLLIB" |
1650 |
fi |
fi |
1651 |
|
#- if USE_EXTENDED_SRC is set, add EXTENDED_SRC_FLAG to FFLAGS : |
1652 |
|
if test ! "x$USE_EXTENDED_SRC" = x ; then |
1653 |
|
FFLAGS="$FFLAGS $EXTENDED_SRC_FLAG" |
1654 |
|
F90FIXEDFORMAT="$F90FIXEDFORMAT $EXTENDED_SRC_FLAG" |
1655 |
|
fi |
1656 |
|
|
1657 |
printf "\n=== Checking system libraries ===\n" |
printf "\n=== Checking system libraries ===\n" |
1658 |
printf " Do we have the system() command using $FC... " |
printf " Do we have the system() command using $FC... " |
3012 |
|
|
3013 |
# canonicalizer |
# canonicalizer |
3014 |
ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py |
ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py |
3015 |
./preProcess.py -H \$< -o \$@ |
./preProcess.py -H -S \$< -o \$@ |
3016 |
|
|
3017 |
# F -> WHIRL |
# F -> WHIRL |
3018 |
# note that the canonicalized version cuts off at col 72 |
# note that the canonicalized version cuts off at col 72 |
3029 |
./whirl2xaif -s -n --debug 1 -o \$@ \$< |
./whirl2xaif -s -n --debug 1 -o \$@ \$< |
3030 |
|
|
3031 |
# XAIF -> XAIF' |
# XAIF -> XAIF' |
3032 |
ad_input_code_sf.w2f.pre.xb.xaif : ad_input_code_sf.w2f.pre.xaif xaif.xsd xaif_base.xsd xaif_inlinable_intrinsics.xsd xaif_derivative_propagator.xsd xaif_output.xsd openad_adm |
ad_input_code_sf.w2f.pre.xb.xaif : ad_input_code_sf.w2f.pre.xaif xaif.xsd xaif_base.xsd xaif_inlinable_intrinsics.xsd xaif_derivative_propagator.xsd xaif_output.xsd oadDriver |
3033 |
./openad_adm -f -t forward_step -i \$< -c \${XAIFSCHEMAROOT}/schema/examples/inlinable_intrinsics.xaif -o \$@ -I -r |
./oadDriver -f -t forward_step -i \$< -c \${XAIFSCHEMAROOT}/schema/examples/inlinable_intrinsics.xaif -o \$@ -I -r |
3034 |
|
|
3035 |
# XAIF' -> WHIRL' |
# XAIF' -> WHIRL' |
3036 |
ad_input_code_sf.w2f.pre.xb.x2w.B : ad_input_code_sf.w2f.pre.xb.xaif xaif2whirl |
ad_input_code_sf.w2f.pre.xb.x2w.B : ad_input_code_sf.w2f.pre.xb.xaif xaif2whirl |
3084 |
whirl2f whirl2f_be: |
whirl2f whirl2f_be: |
3085 |
\$(LN) \${OPEN64ROOT}/whirl2f/\$@ . |
\$(LN) \${OPEN64ROOT}/whirl2f/\$@ . |
3086 |
|
|
3087 |
openad_adm: |
oadDriver: |
3088 |
\$(LN) \${XAIFBOOSTERROOT}/xaifBooster/algorithms/BasicBlockPreaccumulationReverse/test/t \$@ |
\$(LN) \${XAIFBOOSTERROOT}/xaifBooster/algorithms/BasicBlockPreaccumulationReverse/driver/oadDriver \$@ |
3089 |
|
|
3090 |
# ============ end OpenAD specific section ============== |
# ============ end OpenAD specific section ============== |
3091 |
|
|