1807 |
if test -L $name ; then |
if test -L $name ; then |
1808 |
cmp $d/$ii $name > /dev/null 2>&1 |
cmp $d/$ii $name > /dev/null 2>&1 |
1809 |
RETVAL=$? |
RETVAL=$? |
1810 |
xx=`echo $MPI_LNKF | grep -c $name` |
yy=0 ; |
1811 |
if test "x$RETVAL" != x0 -a $xx == 0 ; then |
for xx in $MPI_LNKF ; do if test $xx = $name ; then yy=1 ; fi ; done |
1812 |
|
if test "x$RETVAL" != x0 -a $yy = 0 ; then |
1813 |
# remove sym-link if different and has not just been linked |
# remove sym-link if different and has not just been linked |
1814 |
printf "Un-link + " |
printf "Un-link + " |
1815 |
rm -f $name |
rm -f $name |
1822 |
if ! test -f $name ; then |
if ! test -f $name ; then |
1823 |
# make sym-link and keep record of it |
# make sym-link and keep record of it |
1824 |
printf "Linking $ii to $name ; " |
printf "Linking $ii to $name ; " |
1825 |
ln -s $d/$ii $name |
ln -sf $d/$ii $name |
1826 |
MPI_LNKF="$MPI_LNKF $name" |
MPI_LNKF="$MPI_LNKF $name" |
1827 |
fi |
fi |
1828 |
fi |
fi |
1831 |
fi |
fi |
1832 |
done |
done |
1833 |
echo |
echo |
1834 |
|
#echo "MPI_LNKF='$MPI_LNKF'" |
1835 |
|
|
1836 |
if test "x${PLATFORM}" = x ; then |
if test "x${PLATFORM}" = x ; then |
1837 |
PLATFORM=$p_PLATFORM |
PLATFORM=$p_PLATFORM |
2771 |
#=== Automatic Differentiation Rules === |
#=== Automatic Differentiation Rules === |
2772 |
#=== for TAMC/TAF ====================== |
#=== for TAMC/TAF ====================== |
2773 |
|
|
2774 |
if test "x$OPENAD" == x ; then |
if test "x$OPENAD" = x ; then |
2775 |
|
|
2776 |
cat >>$MAKEFILE <<EOF |
cat >>$MAKEFILE <<EOF |
2777 |
|
|