Ignore:
Timestamp:
Mar 26, 2015, 4:28:42 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Improving the makelmdz* utilities:
Directory phy* in dynlonlat_phylonlat is assumed to be the same "root" as provided by the name of the physics package (e.g. "phylmd" for "phylmd_bis" or "phylmdmine" or "phylmd.2", etc.) to ease things for those who work with multiple copies of a physics directory.
FH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makelmdz_fcm

    r2242 r2250  
    226226fi
    227227
     228phys_root=$physique
     229if [[ "${physique:0:3}" == "lmd" ]] ; then phys_root=lmd ; fi
     230if [[ "${physique:0:4}" == "mars" ]] ; then phys_root=mars ; fi
     231if [[ "${physique:0:3}" == "std" ]] ; then phys_root=std ; fi
     232if [[ "${physique:0:5}" == "venus" ]] ; then phys_root=venus ; fi
     233if [[ "${physique:0:5}" == "titan" ]] ; then phys_root=titan ; fi
     234if [[ "${physique:0:3}" == "mar" ]] ; then phys_root=mar ; fi
     235if [[ "${physique:0:3}" == "dev" ]] ; then phys_root=dev ; fi
     236
    228237if [[ "$physique" != "nophys" ]]
    229238then
    230239   #We'll use some physics
    231240   CPP_KEY="$CPP_KEY CPP_PHYS"
    232    if [[ "${physique:0:3}" == "lmd" ]]
     241   if [[ "${phys_root}" == "lmd" ]]
    233242   then
    234243   #For lmd physics, default planet type is Earth
     
    237246   # set the dyn/phys interface path
    238247   DYN_PHYS_PATH="${LIBFGCM}/dynlonlat_phylonlat"
    239    DYN_PHYS_SUB_PATH="${LIBFGCM}/dynlonlat_phylonlat/phy${physique}"
     248   DYN_PHYS_SUB_PATH="${LIBFGCM}/dynlonlat_phylonlat/phy${phys_root}"
    240249fi
    241250
Note: See TracChangeset for help on using the changeset viewer.