/[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.260 by jmc, Thu Aug 22 01:10:53 2013 UTC revision 1.263 by jahn, Mon Jan 6 16:49:10 2014 UTC
# Line 1576  for ac_option in "$@" ; do Line 1576  for ac_option in "$@" ; do
1576    
1577  done  done
1578    
1579  TMP=./genmk_$$  #TMP=./genmk_$$
1580  #- try to put temporary files in system-local /tmp dir  #- try to put temporary files in system-local /tmp dir
1581  #TMP=/tmp/genmk_$$  TMP=/tmp/genmk_$$
1582  #touch $TMP ; retVal=$?  touch $TMP ; retVal=$?
1583  #if [ $retVal -eq 0 ] ; then  if [ $retVal -eq 0 ] ; then
1584  #  if test ! -r $TMP ; then TMP=./genmk_$$ ; fi    if test ! -r $TMP ; then TMP=./genmk_$$ ; fi
1585  #else  else
1586  #  TMP=./genmk_$$    TMP=./genmk_$$
1587  #fi  fi
1588  #rm -f $TMP  rm -f $TMP
1589  ##echo "  temp files: $TMP.*"  #echo "  temp files: $TMP.*"
1590    
1591  printf "  getting local config information:  "  printf "  getting local config information:  "
1592  if test -f $gm_local ; then  if test -f $gm_local ; then
# Line 2356  EOF Line 2356  EOF
2356      fi      fi
2357  fi  fi
2358    
2359  #  Check for package RADTRANS: if LAPACK is not available,  #  Make sure the openad package is enabled if using OpenAD
2360  #  then issue a warning that the direct radtrans solver is not available.  if test "x$OPENAD" != x ; then
2361  if test "x$HAVE_LAPACK" != xt ; then      echo " $PACKAGES " | grep ' openad ' > /dev/null 2>&1
     echo " $PACKAGES " | grep ' radtrans ' > /dev/null 2>&1  
2362      RETVAL=$?      RETVAL=$?
2363      if test "x$RETVAL" = x0 ; then      if test "x$RETVAL" != x0 ; then
2364          cat <<EOF          cat <<EOF
 *********************************************************************  
 WARNING: the "radtrans" package was enabled but tests failed to  
   compile LAPACK applications.  This means that the direct radtrans  
   solver is not available and compilation will fail if it is enabled.  
   If you want to use the direct solver, please check that:  
2365    
   1) LAPACK is correctly installed for this compiler and  
   2) the LIBS variable (within the "optfile") specifies the correct  
      LAPACK library to link against.  
2366  *********************************************************************  *********************************************************************
2367    ERROR: when generating an adjoint with OpenAD, the openad package
2368      must be enabled.  Please add it to packages.conf.
2369    *********************************************************************
2370    
2371  EOF  EOF
2372            exit 1
2373      fi      fi
2374  fi  fi
2375    

Legend:
Removed from v.1.260  
changed lines
  Added in v.1.263

  ViewVC Help
Powered by ViewVC 1.1.22