/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.185 by jmc, Fri Mar 27 20:18:07 2009 UTC revision 1.186 by jmc, Sun Mar 29 19:09:24 2009 UTC
# Line 1807  for d in $MODS ; do Line 1807  for d in $MODS ; do
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
# Line 1821  for d in $MODS ; do Line 1822  for d in $MODS ; do
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
# Line 1830  for d in $MODS ; do Line 1831  for d in $MODS ; do
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
# Line 2769  EOF Line 2771  EOF
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    

Legend:
Removed from v.1.185  
changed lines
  Added in v.1.186

  ViewVC Help
Powered by ViewVC 1.1.22