Ignore:
Timestamp:
09/26/12 17:28:54 (12 years ago)
Author:
jgipsl
Message:

Changed to copy Bands file into PARAM directory in submit dir. An extra copy is also done to ARCHIVE (STOREDIR) in ATM/Restart/ but this file is not used in the simulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v5/IPSLCM5CHS_v5/GENERAL/DRIVER/lmdz.driver

    r1816 r1892  
    218218    fi 
    219219 
    220     ## algo : For CumulPeriod=1 ;  
    221     ##        IF NbPeriod_Adjust = 0, Get Bands file directly from server, store it with _0 suffix 
    222     ##        ELSE LMDZ_adjust=y ; save Bands file on file server ; 
    223     ##        For CumulPeriod=2 to LMDZ_NbPeriod_adjust ; Get Bands file from server (CumulPeriod-1) ; LMDZ_adjust=y ; save Bands file on file server ; 
    224     ##        For CumulPeriod > LMDZ_NbPeriod_adjust ; LMDZ_adjust=n ; Get Bands file from server (CumulPeriod=LMDZ_NbPeriod_adjust 0 to force it) ; Use Bands ; 
     220    ## Algorithme for special treatment for Bands_xxx file 
     221    ## For CumulPeriod=1 ;  
     222    ##        IF NbPeriod_Adjust = 0 ; set LMDZ_adjust=n 
     223    ##                                IF LMDZ_Bands_file_name was given in lmdz.card THEN Get Bands file directly from server. Store it later with _0 suffix. 
     224    ##                                IF no LMDZ_Bands_file_name was given, start without Bands file. Store it later with _0 suffix. 
     225    ##        ELSE set LMDZ_adjust=y ; start without Bands file ; Store it later in PARAM/ directory in submit directory with suffix _1 ; 
     226    ## 
     227    ## For CumulPeriod=2 to LMDZ_NbPeriod_adjust ;  
     228    ##       Get Bands file from PARAM/ in submit directory (CumulPeriod-1) ; set LMDZ_adjust=y ; Store Bands file in PARAM/ ; 
     229    ## 
     230    ## For CumulPeriod > LMDZ_NbPeriod_adjust ; LMDZ_adjust=n ; Get Bands file from PARAM/ ; Do not store ; 
    225231 
    226232    if [ ${CumulPeriod} -eq 1 ] ; then 
     
    228234            if [ ! X${LMDZ_Bands_file_name} = X ] ; then 
    229235                IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat  
    230                 IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0 
    231236                IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
    232237                IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0" 
     
    241246    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
    242247 
    243     [ ${CumulPeriod} -gt 1 ] && ( IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ; IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ) 
     248    if [ ${CumulPeriod} -gt 1 ] ; then 
     249        IGCM_sys_Get ${SUBMIT_DIR}/PARAM/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
     250        IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
     251    fi 
    244252 
    245253    ##-- GHG forcing : 
     
    480488    IGCM_debug_PushStack "ATM_Finalize" 
    481489 
    482     [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    483  
     490    # Copy Bands_ file to PARAM/ in submit directory. This file will be used for the simulation. 
     491    # Copy also the same file into ATM/Restart at ARCHIVE directory for backup. 
     492    if [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] ; then 
     493      IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
     494      IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_R}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
     495    elif [ ${CumulPeriod} -eq 1 ] && [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     496      # Special case : first period and no adjust => Save bands file with suffix _0 
     497      IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0 
     498      IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_R}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0 
     499    fi 
    484500 
    485501    # Add special treatement for CARBON CYCLE 
Note: See TracChangeset for help on using the changeset viewer.