Ignore:
Timestamp:
01/31/12 13:06:36 (12 years ago)
Author:
jgipsl
Message:
  • Added all cards needed to run a forced LMDZOR amip experience in IPSLCM5_v4 configuration.
  • Added file guide.def. By defalut ok_guide=n, no nudging. To activate nudging, set ok_guide=y in lmdz.card
  • in lmdz.driver, changed test to know if create_etat0_limit execution is needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5_v4/GENERAL/DRIVER/lmdz.driver

    r1620 r1643  
    3636    esac 
    3737 
    38          
    3938    ##- LMDZ physics version 
    4039    ##  Read LMDZ_Physics option in lmdz.card, if not present take default value AP (old physics)  
     
    4544    fi 
    4645    echo LMDZ physics version : ${LMDZ_Physics} 
     46 
     47    ##- Create_etat0_limit version 
     48    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices CREATE 
     49    CREATE=${lmdz_UserChoices_CREATE} 
     50    echo create_etat0_limit version : ${CREATE} 
    4751 
    4852    ## - LMDZ choice of config.def file 
     
    313317    LMDZ_sed run.def adjust   ${LMDZ_adjust} 
    314318 
     319 
     320    # guide.def : Activate nudging if ok_guide set in lmdz.card 
     321    if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then 
     322        LMDZ_sed guide.def ok_guide  ${lmdz_UserChoices_ok_guide} 
     323    fi 
     324 
    315325    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    316326    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
     
    342352 
    343353    if ( ${FirstInitialize} ) ; then 
    344  
    345         if ( [ "${config_Restarts_OverRule}" = "n" ] && [ "${config_ATM_Restart}" = "n" ] ); then 
     354        if [ -f start.nc ] && [ -f startphy.nc ] ; then 
     355            # The restart files already exist. They have been copied from a previous run or from a CREATE job 
     356            echo "Restart files for LMDZ have been copied from a previous run" 
     357        else 
     358            # Restart files have to be created 
     359            echo "Run create_etat0_limit.e to create restart files start.nc and startphy.nc for LMDZ" 
    346360            if [ ${DRYRUN} -le 2 ] ; then 
    347361                ##-- suppression of ozone file construction -- 
    348                 cp config.def config.def.save 
    349                 LMDZ_sed config.def read_climoz 0 
     362                cp config.def config.def.save 
     363                LMDZ_sed config.def read_climoz 0 
    350364                IGCM_sys_Cp ${R_EXE}/create_etat0_limit.e ${RUN_DIR}/. 
    351365                if [ ${DRYRUN} -le 1 ] ; then 
    352366                    ${HOST_MPIRUN_COMMAND} -np 1 ./create_etat0_limit.e 
    353                     IGCM_sys_Put_Out start.nc    ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_start.nc 
    354                     IGCM_sys_Put_Out startphy.nc ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_startphy.nc 
     367                    IGCM_sys_Put_Out start.nc    ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_start.nc 
     368                    IGCM_sys_Put_Out startphy.nc ${R_OUT_ATM_R}/${config_UserChoices_JobName}_${PeriodDateBegin}_startphy.nc 
    355369                fi 
    356                 IGCM_sys_Mv config.def.save config.def 
     370                IGCM_sys_Mv config.def.save config.def 
    357371            else 
    358372                echo "EXECUTION of ${HOST_MPIRUN_COMMAND} -np 1 ./create_etat0_limit.e simulated" 
     
    360374            fi 
    361375        fi 
    362  
    363376    fi 
    364377 
Note: See TracChangeset for help on using the changeset viewer.