/[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.198 by mlosch, Fri Oct 9 11:13:27 2009 UTC revision 1.204 by jmc, Wed Mar 10 15:49:54 2010 UTC
# Line 519  Usage: "$0" [OPTIONS] Line 519  Usage: "$0" [OPTIONS]
519        -pdefault=NAME | --pdefault=NAME        -pdefault=NAME | --pdefault=NAME
520            Get the default package list from "NAME".            Get the default package list from "NAME".
521    
522        -bash NAME
523              Explicitly specify the Bourne or BASH shell to use
524    
525      -make NAME | -m NAME      -make NAME | -m NAME
526        --make=NAME | -m=NAME        --make=NAME | -m=NAME
527            Use "NAME" for the MAKE program. The default is "make" but            Use "NAME" for the MAKE program. The default is "make" but
# Line 578  Usage: "$0" [OPTIONS] Line 581  Usage: "$0" [OPTIONS]
581            *only* works if it is supported by the OPTFILE that            *only* works if it is supported by the OPTFILE that
582            is being used.            is being used.
583    
584        -use_real4 | -use_r4 | -ur4 | --use_real4 | --use_r4 | --ur4
585              Use "real*4" type for _RS variable (#undef REAL4_IS_SLOW)
586              *only* works if CPP_EEOPTIONS.h allows this.
587    
588      -ignoretime | -ignore_time | --ignoretime | --ignore_time      -ignoretime | -ignore_time | --ignoretime | --ignore_time
589            Ignore all the "wall clock" routines entirely.  This will            Ignore all the "wall clock" routines entirely.  This will
590            not in any way hurt the model results -- it simply means            not in any way hurt the model results -- it simply means
# Line 621  Usage: "$0" [OPTIONS] Line 628  Usage: "$0" [OPTIONS]
628            (including the Makefile, etc.) used to build the            (including the Makefile, etc.) used to build the
629            executable [off by default]            executable [off by default]
630    
     -bash NAME  
           Explicitly specify the Bourne or BASH shell to use  
   
631    While it is most often a single word, the "NAME" variables specified    While it is most often a single word, the "NAME" variables specified
632    above can in many cases be a space-delimited string such as:    above can in many cases be a space-delimited string such as:
633    
# Line 635  Usage: "$0" [OPTIONS] Line 639  Usage: "$0" [OPTIONS]
639    
640    For more detailed genmake documentation, please see:    For more detailed genmake documentation, please see:
641    
642      http://mitgcm.org/devel_HOWTO/      http://mitgcm.org/public/devel_HOWTO/
643    
644  EOF  EOF
645    
# Line 1065  MPI= Line 1069  MPI=
1069  MPIPATH=  MPIPATH=
1070  OMP=  OMP=
1071  OMPFLAG=  OMPFLAG=
1072    USE_R4=
1073  TS=  TS=
1074  PAPIS=  PAPIS=
1075  PCLS=  PCLS=
# Line 1132  TAMC_EXTRA= Line 1137  TAMC_EXTRA=
1137    
1138  #  The following state can be set directly by command-line switches  #  The following state can be set directly by command-line switches
1139  gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE"  gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE"
1140  gm_s2="FC CPP IEEE TS PAPIS PCLS PAPI PCL HPMT GSL DEVEL MPI OMP DUMPSTATE STANDARDDIRS"  gm_s2="FC IEEE USE_R4 TS PAPIS PCLS PAPI PCL HPMT GSL DEVEL MPI OMP DUMPSTATE STANDARDDIRS"
1141    
1142  #  The following state is not directly set by command-line switches  #  The following state is not directly set by command-line switches
1143  gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM FEXTRAFLAGS"  gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM FEXTRAFLAGS"
# Line 1297  for ac_option in "$@" ; do Line 1302  for ac_option in "$@" ; do
1302          -noieee | --noieee)          -noieee | --noieee)
1303              IEEE= ;;              IEEE= ;;
1304    
1305            -use_real4 | -use_r4 | -ur4 | --use_real4 | --use_r4 | --ur4 )
1306                USE_R4=true ;;
1307    
1308          -ts | --ts)          -ts | --ts)
1309              TS=true ;;              TS=true ;;
1310          -papis | --papis)          -papis | --papis)
# Line 1405  fi Line 1413  fi
1413  #  Find the MITgcm ${THISVER}  #  Find the MITgcm ${THISVER}
1414  version_file="${ROOTDIR}/doc/tag-index"  version_file="${ROOTDIR}/doc/tag-index"
1415  if test -f $version_file ; then  if test -f $version_file ; then
1416      THISVER=`grep '^checkpoint' $version_file | head -1`      THISVER=`$AWK '/^checkpoint/{print $1; exit}' $version_file`
1417  #-  remove ./BUILD_INFO.h file if older than version_file  #-  remove ./BUILD_INFO.h file if older than version_file
1418      if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then      if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then
1419          echo "  remove ./BUILD_INFO.h (older than ${version_file})"          echo "  remove ./BUILD_INFO.h (older than ${version_file})"
# Line 1573  if test ! "x$OMP" = x ; then Line 1581  if test ! "x$OMP" = x ; then
1581        DEFINES="$DEFINES -DUSE_OMP_THREADING"        DEFINES="$DEFINES -DUSE_OMP_THREADING"
1582  fi  fi
1583    
1584    if test ! "x$USE_R4" = x ; then
1585          echo "  Turning on LET_RS_BE_REAL4 cpp flag"
1586          DEFINES="$DEFINES -DLET_RS_BE_REAL4"
1587    fi
1588    
1589  if test ! "x$TS" = x ; then  if test ! "x$TS" = x ; then
1590        echo "  Turning on timing per timestep"        echo "  Turning on timing per timestep"
1591        if test ! "x$FOOLAD" = x ; then        if test ! "x$FOOLAD" = x ; then
# Line 2643  Clean: Line 2656  Clean:
2656          @make clean          @make clean
2657          @make cleanlinks          @make cleanlinks
2658          -rm -f \$(SPECIAL_FILES)          -rm -f \$(SPECIAL_FILES)
2659          -rm -f genmake_state genmake_*optfile genmake_warnings make.log run.log f90mkdepend.log *.bak          -rm -f genmake_state genmake_*optfile genmake_warnings genmake_errors
2660            -rm -f make.log run.log f90mkdepend.log *.bak
2661          -rm -f taf_command taf_output taf_ad.log taf_ad_flow.log          -rm -f taf_command taf_output taf_ad.log taf_ad_flow.log
2662  CLEAN:  CLEAN:
2663          @make Clean          @make Clean
# Line 3041  ad_input_code_sf.w2f.f$FS90: ad_input_co Line 3055  ad_input_code_sf.w2f.f$FS90: ad_input_co
3055    
3056  # canonicalizer  # canonicalizer
3057  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
3058          ./preProcess.py --timing -H -S \$< -o \$@          ./preProcess.py --timing --r8 -H -S \$< -o \$@
3059    
3060  # F -> WHIRL  # F -> WHIRL
3061  # note that the canonicalized version cuts off at col 72  # note that the canonicalized version cuts off at col 72
# Line 3081  postProcess.tag: ad_input_code_sf.w2f.pr Line 3095  postProcess.tag: ad_input_code_sf.w2f.pr
3095          # this step also creates the file postProcess.make but we cannot          # this step also creates the file postProcess.make but we cannot
3096          # name it as the target or else make will try to remake it for          # name it as the target or else make will try to remake it for
3097          # the include directive above for any rule, e.g. make clean          # the include directive above for any rule, e.g. make clean
3098          ./postProcess.py --progress --timing -m r -i ../OAD_support/ad_inline.f --width 4 \$<          ./postProcess.py --progress --timing --outputFormat=fixed -m r -i ../OAD_support/ad_inline.f --width 4 \$<
3099    
3100  # setup some links  # setup some links
3101  %.xsd:  %.xsd:

Legend:
Removed from v.1.198  
changed lines
  Added in v.1.204

  ViewVC Help
Powered by ViewVC 1.1.22