Ignore:
Timestamp:
Jun 5, 2013, 2:41:09 PM (12 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

    r957 r979  
    1919chimie=false
    2020parallel=none
     21paramem="par"
    2122compil_mod=prod
    2223io=ioipsl
     
    2930
    3031# guess a default 'arch'
    31 arch="g95" # start with assuming we're on a Linux/Unix machine with g95
     32arch="local" # start with assuming we're on a local machine with local arch file
    3233## try to recognise machine and infer arch from it
    3334machine=`hostname`
     
    126127[-cpp CPP_KEY]             : additional preprocessing definitions
    127128[-adjnt]                   : adjoint model, not operational ...
     129[-mem]                     : reduced memory dynamics (if in parallel mode)
    128130[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    129131[-link LINKS]              : additional links with other libraries
     
    138140     
    139141      "-p")
    140           physique="$2" ;  shift ; shift ;;
     142          physique="$2" ; shift ; shift ;;
    141143
    142144      "-s")
     
    186188      "-cosp")
    187189          cosp="$2" ; shift ; shift ;;
     190     
     191      "-mem")
     192          paramem="mem" ; shift ;;
    188193
    189194      "-filtre")
     
    424429########################################################################
    425430
     431cd $LIBFGCM/grid
     432if [[ -f dimensions.h ]]
     433then
     434  echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs'
     435  echo "Attendez que la premiere compilation soit terminee pour relancer la suivante."
     436  echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs,"
     437  echo  vous pouvez continuer en repondant oui.
     438  echo "Voulez-vous vraiment continuer?"
     439  echo ""
     440  echo "WARNING: you are probably already compiling the model somewhere else."
     441  echo "Wait until the first compilation is finished before launching this one."
     442  echo "If you are sure that you are not compiling elsewhere, just answer "
     443  echo "yes (or 'oui') to the question below to proceed."
     444  echo "Do you wish to continue?"
     445  read reponse
     446  if [[ $reponse == "oui" || $reponse == "yes" ]]
     447  then
     448    \rm -f $LIBFGCM/grid/dimensions.h
     449  else
     450    exit
     451  fi
     452fi
     453
     454
    426455cd $LIBFGCM/grid/dimension
    427456./makdim $dim
     
    496525then
    497526  SUFF_NAME=${SUFF_NAME}_para
     527  DYN=dyn${dimc}d${paramem}
     528  if [[ "$paramem" == "mem" ]]
     529  then
     530   SUFF_NAME=${SUFF_NAME}_${paramem}
     531  fi
    498532else
    499533  SUFF_NAME=${SUFF_NAME}_seq
     534  DYN=dyn${dimc}d
    500535fi
    501536
     
    634669then
    635670  INCLUDE="$INCLUDE"' -I$(LIBF)/phy'"$physique"
     671  phys="PHYS=$physique"
     672else
     673  # trick to avoid having a physics-related library in the makefile
     674  phys="L_PHY= LIBPHY="
    636675fi
    637676if (( $dimension == 1 ))
     
    674713$dyn \
    675714LIBO=${LIBOGCM}/${nomlib} \
    676 PHYS=$physique \
     715$phys \
    677716DIM=$dimc \
    678717FLAG_PARA=$FLAG_PARA \
     
    705744$dyn \
    706745LIBO=${LIBOGCM}/${nomlib} \
    707 PHYS=$physique \
     746$phys \
    708747DIM=$dimc \
    709748FLAG_PARA=$FLAG_PARA \
     
    725764PROG=$code
    726765
    727 if [[ -r $libf/grid/dimensions.h ]]
     766if [[ -r $LIBFGCM/grid/dimensions.h ]]
    728767then
    729768  # Cleanup: remove dimension.h file
    730   \rm -f $libf/grid/dimensions.h
    731 fi
     769  \rm -f $LIBFGCM/grid/dimensions.h
     770fi
Note: See TracChangeset for help on using the changeset viewer.