Changeset 2112 for LMDZ5/trunk/makelmdz


Ignore:
Timestamp:
Sep 2, 2014, 3:52:42 PM (10 years ago)
Author:
jbmadeleine
Message:

inclusion de l'option -full dans makelmdz qui permet de recompiler
entièrement le modèle (l'option était déjà disponible avec
makelmdz_fcm mais pas makelmdz)

added the -full option to makelmdz, which recompiles the model from
scratch (was already available with makelmdz_fcm but not with
makelmdz)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makelmdz

    r2098 r2112  
    2727sisvat=false
    2828rrtm=false
     29full=""
    2930
    3031# guess a default 'arch'
     
    113114[-mem]                     : reduced memory dynamics (if in parallel mode)
    114115[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
     116[-full]                    : Full (re)compilation (from scratch)
    115117[-link LINKS]              : additional links with other libraries
    116118[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
     
    173175      "-filtre")
    174176          filtre=$2 ; shift ; shift ;;
     177
     178      "-full")
     179      full="full" ; shift ;;
    175180
    176181      "-link")
     
    435440echo dimc $dimc
    436441
    437 
    438442########################################################################
    439443# Gestion des dimensions du modele.
     
    464468fi
    465469
    466 
    467470cd $LIBFGCM/grid/dimension
    468471./makdim $dim
    469472cat $LIBFGCM/grid/dimensions.h
    470473cd $LMDGCM
    471 
    472474
    473475########################################################################
     
    492494fi
    493495
    494 
    495496cd $LMDGCM
    496497
     498########################################################################
     499# library directory name:
     500########################################################################
     501
     502nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
     503echo "Path to library: "$nomlib
     504
     505########################################################################
     506#  Cleanup for a full recompilation, if requested
     507########################################################################
     508
     509if [[ $full == "full" ]]
     510then
     511# remove makefile and librairies
     512  echo "-full option: recompiling from scratch"
     513  \rm -f makefile
     514  \rm -rf "${LIBOGCM}/${nomlib}"
     515fi
    497516
    498517########################################################################
     
    538557  source_code=${code}.F90
    539558fi
    540 
    541 # library directory name:
    542 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
    543 echo $nomlib
    544559
    545560if [[ ! -d "${LIBOGCM}/${nomlib}" ]]
Note: See TracChangeset for help on using the changeset viewer.