Ignore:
Timestamp:
Oct 24, 2024, 1:10:45 PM (4 weeks ago)
Author:
afalco
Message:

debug folder separate from release mode. Faster compilation time, but same executable.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r3427 r3471  
    6565########################################################################
    6666
    67 CPP_KEY="" 
     67CPP_KEY=""
    6868INCLUDE_DIR=""
    6969LIB=""
     
    117117[-ext_src path]            : path to an additional set of routines to compile with the model
    118118[-arch_path path]          : path to architecture files (default: $arch_default_path)
    119  -arch arch                : target architecture 
     119 -arch arch                : target architecture
    120120 exec                      : executable to build
    121121fin
     
    124124      "-d")
    125125          dim=$2 ; shift ; shift ;;
    126      
     126
    127127      "-p")
    128128          physique="$2" ;  shift ; shift ;;
     
    172172      "-parallel")
    173173          parallel="$2" ; shift ; shift ;;
    174      
     174
    175175      "-include")
    176176          INCLUDE_DIR="$INCLUDE_DIR -I$2" ; shift ; shift ;;
     
    223223
    224224###############################################################
    225 # path to fcm 
     225# path to fcm
    226226###############################################################
    227227# handle case when provided path to fcm was given as a relative
     
    258258    ln -s $arch_default_path/arch-${arch}.path arch.path
    259259  fi
    260        
     260
    261261  if test -f $arch_path/arch-${arch}.env
    262262  then
     
    397397   echo "Option -v $veget does not exist"
    398398   echo "Use ./makelmdz_fcm -h for more information"
    399    exit 
     399   exit
    400400fi
    401401
     
    517517
    518518dim_full=$dim
    519 dim=`echo $dim | sed -e 's/[^0-9]/ /g'` 
     519dim=`echo $dim | sed -e 's/[^0-9]/ /g'`
    520520set $dim
    521521dimc=$#
     
    653653#  \rm -f $libf/phy$physique/raddim.h
    654654#  cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h
    655 #  echo $libf/phy$physique/raddim.$dimh.h 
     655#  echo $libf/phy$physique/raddim.$dimh.h
    656656#  cat $libf/phy$physique/raddim.h
    657657# else
     
    697697  if (( $dimension == 1 ))
    698698  then
    699     # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 
     699    # dynamics-related routines in"dyn1d" subdirectory of phy${physique}
    700700    DYN=phy${physique}/dyn1d
    701701  else
     
    710710  if (( $dimension == 1 ))
    711711  then
    712     # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 
     712    # dynamics-related routines in"dyn1d" subdirectory of phy${physique}
    713713    DYN=phy${physique}/dyn1d
    714714  else
     
    730730then
    731731  SUFF_NAME=${SUFF_NAME}_inca
     732fi
     733SUFF_DEBUG=
     734if [[ "$compil_mod" == "debug" ]]
     735then
     736  SUFF_DEBUG=_debug
    732737fi
    733738
     
    753758
    754759echo "%ARCH          $arch"          >> $config_fcm
    755 echo "%INCDIR        $INCLUDE_DIR"       >> $config_fcm 
     760echo "%INCDIR        $INCLUDE_DIR"       >> $config_fcm
    756761echo "%LIB           $LIB"           >> $config_fcm
    757762echo "%ROOT_PATH     $PWD"           >> $config_fcm
     
    778783echo "%EXEC          $code"          >> $config_fcm
    779784echo "%SUFF_NAME     $SUFF_NAME"     >> $config_fcm
     785echo "%SUFF_DEBUG    $SUFF_DEBUG"    >> $config_fcm
    780786echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> $config_fcm
    781787echo "%PARA_FFLAGS   $PARA_FFLAGS"   >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.