Ignore:
Timestamp:
Apr 13, 2016, 9:57:46 AM (9 years ago)
Author:
emillour
Message:

All GCMS: Further adaptations to keep up with changes in LMDZ5 concerning
physics/dynamics separation:

  • changed directory "dynlonlat_phylonlat" to "dynphy_lonlat" and adapted makelmdz and makelmdz_fcm scripts accordingly.
  • added option "-libphy" to makelmdz_fcm to just build a physics library, without any main program (not operational yet; further cleanup in the physics required).
  • moved "iniprint.h" from dyn3d_common to misc (NB: it is used in both physics and dynamics; this should be cleaned up further...)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r1530 r1540  
    3636job=1
    3737full=''
     38libphy=false
    3839
    3940LMDGCM=`/bin/pwd`
     
    192193          full="-full" ; shift ;;
    193194
     195      "-libphy")
     196          libphy="true" ; shift ;;
     197
    194198      "-arch")
    195199          arch=$2 ; shift ; shift ;;
     
    264268   PHY_COMMON_PATH="${LIBFGCM}/phy_common"
    265269   # set the dyn/phys interface path
    266    DYN_PHYS_PATH="${LIBFGCM}/dynlonlat_phylonlat"
    267    DYN_PHYS_SUB_PATH="${LIBFGCM}/dynlonlat_phylonlat/phy${phys_root}"
     270   DYN_PHYS_PATH="${LIBFGCM}/dynphy_lonlat"
     271   DYN_PHYS_SUB_PATH="${LIBFGCM}/dynphy_lonlat/phy${phys_root}"
    268272fi
    269273
     
    599603then
    600604  SUFF_NAME=${SUFF_NAME}_inca
     605fi
     606
     607if [[ $libphy == "true" ]]
     608then
     609  # special case where we compile only the physics
     610  DYN=$LMDGCM/.void_dir
     611  DYN_COMMON_PATH=$LMDGCM/.void_dir
     612  FILTRE_PATH=$LMDGCM/.void_dir
     613  DYN_PHYS_PATH=$LMDGCM/.void_dir
     614  DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir
     615  #and there is no main program to generate
     616  code=""
     617  SUFF_NAME=""
     618else
     619  SUFF_NAME=${SUFF_NAME}.e
    601620fi
    602621
     
    652671rm -rf config
    653672ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config
    654 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/tmp tmp_src
     673ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ppsrc tmp_src
    655674
    656675
Note: See TracChangeset for help on using the changeset viewer.