Ignore:
Timestamp:
Jun 5, 2013, 2:41:09 PM (11 years ago)
Author:
emillour
Message:

Common dynamics:
Updates in the dynamics (seq and ) to keep up with updates
in LMDZ5 (up to LMDZ5 trunk, rev 1760):

  • General stuff (essentially to keep up with Earth model):
  • Updated makelmdz_fcm and makelmdz (more control on dimension.h, added option -mem, although it is not usefull for now)
  • Updated build_gcm with more control over fcm
  • Updated create_make_gcm (enable looking for code in subdirectories)
  • bibio:
  • updates (just renaming the files actually...) new_unit.F90 => new_unit_m.F90, pchsp_95.F90 => pchsp_95_m.F90 and pchfe_95.F90 => pchfe_95_m.F90
  • filtrez:
  • mod_fft.F90: use more baseline CPP directives for preprocessor compatibility
  • mod_filtre_fft_loc.F90: added this new file
  • filtreg_mod.f90: added calls to init_..._loc
  • filtreg.F: fixed calls to DGEMM into SGEMM (preprocessing does the switch)
  • dyn3d:
  • removed obsolete files: etat0_netcdf.F90 limit_netcdf.F90

pres2lev.F90

  • added new file : pres2lev_mod.F90 (module containing "old" pres2lev)
  • gcm.F: changed args to call to inidissip (added arg "vert_prof_dissip")
  • inidissip.F90: added arg "vert_prof_dissip" and the "earth model" discterizations (flagged with "planet_type=="earth")
  • comdissnew.h: added 'vert_prof_dissip' to the common block
  • guide_mod.F90: added the "use pres2lev_mod"
  • conf_gcm.F: cosmetics, and evaluation of vert_prof_dissip, (and also of dissip_* factors, for Earth model)
  • comconst.h : added dissip_factz,dissip_zref variables (for Earth mode dissip)
  • dyn3dpar:
  • removed obsolete files: etat0_netcdf.F90 limit_netcdf.F90

pres2lev.F90 mod_const_para.F90

  • added new files: pres2lev_mod.F90 (module containing "old" pres2lev)

mod_const_mpi

  • abort_gcm : better control of abort in parallel mode
  • gcm.F: changed args to call to inidissip (added arg "vert_prof_dissip")
  • inidissip.F90: added arg "vert_prof_dissip" and the "earth model" discterizations (flagged with "planet_type=="earth")
  • comdissnew.h: added 'vert_prof_dissip' to the common block
  • filtreg_p.F : bug correction (array bounds)
  • guide_p_mod.F90 : added the "use pres2lev_mod"
  • conf_gcm.F : cosmetics (and evaluation of vert_prof_dissip , and

also of dissip_* factors, for Earth model)
plus check if "adjust" is indeed not used in OpenMP

  • comconst.h : add dissip_factz,dissip_zref variables (for Earth mode dissip)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r957 r979  
    2525chemistry=false
    2626parallel=none
     27paramem="par"
    2728compil_mod=prod
    2829io=ioipsl
     
    8081[-cpp CPP_KEY]             : additional preprocessing definitions
    8182[-adjnt]                   : adjoint model, not operational ...
     83[-mem]                     : reduced memory dynamics (if in parallel mode)
    8284[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    8385[-link LINKS]              : additional links with other libraries
     
    142144          cosp="$2" ; shift ; shift ;;
    143145
     146      "-mem")
     147          paramem="mem" ; shift ;;
    144148
    145149      "-filtre")
     
    164168
    165169###############################################################
    166 # mettre le chemin du fcm dans le path
     170# path to fcm
    167171###############################################################
     172# handle case when provided path to fcm was given as a relative
     173# path (from makelmdz_fcm script directory) and not an absolute path
     174if [[ ${fcm_path:0:1} != "/" ]] ; then
     175  # prepend with makelmdz_fcm location
     176  fcm_path=$(cd $(dirname $0) ; pwd)"/"${fcm_path}
     177fi
     178
     179# add fcm_path to PATH
    168180export PATH=${fcm_path}:${PATH}
    169181
    170 echo "Chemin du fcm utlise :"
    171 which fcm
     182echo "Path to fcm:"
     183echo ${fcm_path}
    172184
    173185###############################################################
     
    295307# on cree ou remplace le fichier des dimensions
    296308########################################################################
     309
     310cd $LIBFGCM/grid
     311if [[ -f dimensions.h ]]
     312then
     313  echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs'
     314  echo "Attendez que la premiere compilation soit terminee pour relancer la suivante."
     315  echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs,"
     316  echo  vous pouvez continuer en repondant oui.
     317  echo "Voulez-vous vraiment continuer?"
     318  echo ""
     319  echo "WARNING: you are probably already compiling the model somewhere else."
     320  echo "Wait until the first compilation is finished before launching this one."
     321  echo "If you are sure that you are not compiling elsewhere, just answer "
     322  echo "yes (or 'oui') to the question below to proceed."
     323  echo "Do you wish to continue?"
     324  read reponse
     325  if [[ $reponse == "oui" || $reponse == "yes" ]]
     326  then
     327    \rm -f $LIBFGCM/grid/dimensions.h
     328  else
     329    exit
     330  fi
     331fi
     332
    297333
    298334cd $LIBFGCM/grid/dimension
     
    393429then
    394430  SUFF_NAME=${SUFF_NAME}_para
    395   DYN=dyn${dimc}dpar
     431  DYN=dyn${dimc}d${paramem}
     432  if [[ "$paramem" == "mem" ]]
     433  then
     434   SUFF_NAME=${SUFF_NAME}_${paramem}
     435  fi
    396436else
    397437  SUFF_NAME=${SUFF_NAME}_seq
     
    463503ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config
    464504ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/tmp tmp_src
     505
     506if [[ -r $LIBFGCM/grid/dimensions.h ]]
     507then
     508  # Cleanup: remove dimension.h file
     509  \rm -f $LIBFGCM/grid/dimensions.h
     510fi
Note: See TracChangeset for help on using the changeset viewer.