/[MITgcm]/MITgcm/tools/genmake
ViewVC logotype

Diff of /MITgcm/tools/genmake

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

revision 1.83 by dimitri, Wed Sep 17 18:24:51 2003 UTC revision 1.86 by heimbach, Fri Oct 3 14:09:51 2003 UTC
# Line 100  while ($#allargs) Line 100  while ($#allargs)
100     set include_jam_libs     set include_jam_libs
101     echo "Including paths to JAM libraries"     echo "Including paths to JAM libraries"
102     breaksw     breaksw
103     case -arpack:
104       echo "Enabling ARPACK libraries"
105       set USEARPACK
106       breaksw
107   case -fc:   case -fc:
108   case -fc=:   case -fc=:
109     echo "To change the compiler (\$FC) you must specify one with -fc="     echo "To change the compiler (\$FC) you must specify one with -fc="
# Line 113  while ($#allargs) Line 117  while ($#allargs)
117     set FC = ( `echo $arg | sed 's/-fc=//' `)     set FC = ( `echo $arg | sed 's/-fc=//' `)
118     breaksw     breaksw
119   case -help:   case -help:
120     echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]"     echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-arpack] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]"
121  cat << EOF  cat << EOF
122    
123  $0 is used to generate the Makefile in the current directory.  $0 is used to generate the Makefile in the current directory.
# Line 376  else Line 380  else
380  # set DEFINES = ( ${DEFINES} '-UALLOW_USE_MPI -UALWAYS_USE_MPI' )  # set DEFINES = ( ${DEFINES} '-UALLOW_USE_MPI -UALWAYS_USE_MPI' )
381  endif  endif
382    
383    if ($?USEARPACK) then
384      set USEARPACK  = ( '+arpack' )
385      set LIBS       = ( '-L/usr/lib -larpack -llapack' )
386    else
387      set USEARPACK
388    endif
389    
390  # Platform specific options  # Platform specific options
391  switch ($platform$USEMPI)  switch ($platform$USEMPI$USEARPACK)
392    case OSF1+mpi:    case OSF1+mpi:
393  #ph: e.g. halem.gsfc.nasa.gov  #ph: e.g. halem.gsfc.nasa.gov
394      echo "Configuring for DEC Alpha with MPI"      echo "Configuring for DEC Alpha with MPI"
# Line 557  switch ($platform$USEMPI) Line 568  switch ($platform$USEMPI)
568      set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' )      set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' )
569      set FC = ( 'efc' )      set FC = ( 'efc' )
570      set FFLAGS = ( '-WB -Vaxlib -u -w' )      set FFLAGS = ( '-WB -Vaxlib -u -w' )
571      set FOPTIM = ( '-O2 ' )  #    set FOPTIM = ( '-O2 -ftz' )
572        set FOPTIM = ( '-O3 -mp' )
573      set LINK = ( 'efc' )      set LINK = ( 'efc' )
574      set LIBS       = ( '-lmpi -lscs -lpthread' )      set LIBS       = ( '-lmpi -lscs -lpthread' )
575      breaksw      breaksw
# Line 622  switch ($platform$USEMPI) Line 634  switch ($platform$USEMPI)
634        set FOPTIM     = ( '-O3 -align' )        set FOPTIM     = ( '-O3 -align' )
635  #P3   set FOPTIM     = ( $FOPTIM '-tpp6 -xWKM' )  #P3   set FOPTIM     = ( $FOPTIM '-tpp6 -xWKM' )
636  #P4   set FOPTIM     = ( $FOPTIM '-tpp7 -xWKM' )  #P4   set FOPTIM     = ( $FOPTIM '-tpp7 -xWKM' )
637        set LIBS       = ( '-lPEPCF90' )        set LIBS       = ( ${LIBS} '-lPEPCF90' )
638        breaksw        breaksw
639       default:       default:
640        echo Error: Linux compiler not recognized: \$FC=$FC        echo Error: Linux compiler not recognized: \$FC=$FC
# Line 736  switch ($platform$USEMPI) Line 748  switch ($platform$USEMPI)
748      set LIBS       = ( '-L/opt/mpich/lib/ -lfmpich -lmpich' )      set LIBS       = ( '-L/opt/mpich/lib/ -lfmpich -lmpich' )
749      set INCLUDES   = ( '-I/opt/mpich/include' )      set INCLUDES   = ( '-I/opt/mpich/include' )
750      breaksw      breaksw
751      case gfdl-sgi-o3k
752        echo "Configuring for " $platform
753        set DEFINES    = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' )
754        set FFLAGS     = ( 'extend_source -mp -mpio -bytereclen -mips4 -r8 -static' )
755        set FOPTIM     = ( '-O3' )
756        set LIBS       = ( '-lmpi' )
757        set INCLUDES   = ( '-I/opt/mpt/1510/usr/include' )
758        breaksw
759      default:
760        echo "Error: platform not recognized: uname -p = " $platform$USEMPI
761        exit
762        breaksw
763    default:    default:
764      echo "Error: platform not recognized: uname -p = " $platform$USEMPI      echo "Error: platform not recognized: uname -p = " $platform$USEMPI
765      exit      exit

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.22