Ignore:
Timestamp:
02/15/10 09:19:19 (15 years ago)
Author:
mafoipsl
Message:

Add LMDZ_sed for simplification of .def updates. Keep start and startphy files in ATM/Restart directory. Keep climoz_LMDZ_1995.nc (ie climoz_LMD.nc) from database instead of create it through create_etat0_limit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/lmdz.driver

    r815 r894  
    11#!/bin/ksh 
    22#----------------------------------------------------------------- 
     3function LMDZ_sed 
     4{ 
     5    IGCM_debug_PushStack "LMDZ_sed" 
     6 
     7    sed -e "s/^${2}\ *=.*/${2}= ${3}/" \ 
     8        ${1} > ${1}.tmp 
     9    RET=$? 
     10    echo "LMDZ_sed : ${1} ${2} ${3}" 
     11    \mv ${1}.tmp ${1} 
     12 
     13    IGCM_debug_PopStack "LMDZ_sed" 
     14    return $RET 
     15} 
     16 
    317function ATM_Initialize 
    418{ 
     
    187201        if ( [ "${config_Restarts_OverRule}" = "n" ] && [ "${config_ATM_Restart}" = "n" ] ); then 
    188202            if [ ${DRYRUN} -le 2 ] ; then 
     203                ##-- suppression of ozone file construction -- 
     204                cp physiq.def physiq.def.save 
     205                LMDZ_sed physiq.def read_climoz 0 
    189206                IGCM_sys_Cp ${R_EXE}/create_etat0_limit.e ${RUN_DIR}/. 
    190207                if [ ${DRYRUN} -le 1 ] ; then 
    191208                    ./create_etat0_limit.e 
     209                    IGCM_sys_Put_Out start.nc    ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_start.nc 
     210                    IGCM_sys_Put_Out startphy.nc ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_startphy.nc 
    192211                fi 
     212                IGCM_sys_Mv physiq.def.save physiq.def 
    193213            else 
    194214                echo "EXECUTION of ./create_etat0_limit.e simulated" 
Note: See TracChangeset for help on using the changeset viewer.