Ignore:
Timestamp:
05/19/16 13:35:11 (8 years ago)
Author:
jgipsl
Message:

Removed specific treatment of Bands_ file and option adjust in lmdz. See ticket #74

Location:
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/lmdz.driver

    r2841 r2859  
    8080    done 
    8181 
    82     ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    83     if [ X"${lmdz_UserChoices_LMDZ_NbPeriod_adjust}" = X"" ] ; then 
    84         # The variable is not in lmdz.card, set default value 
    85         LMDZ_NbPeriod_adjust=0 
    86     else         
    87         LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 
    88     fi 
    89  
    90     if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    91         LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 
    92     fi 
    93  
    94  
    9582    ##  Read LMDZ_COSP_OK in lmdz.card 
    9683    if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then 
     
    150137{ 
    151138    IGCM_debug_PushStack "ATM_Update" 
    152  
    153  
    154     ## Algorithme for special treatment for Bands_xxx file 
    155     ## For CumulPeriod=1 ;  
    156     ##        IF NbPeriod_Adjust = 0 ; set LMDZ_adjust=n 
    157     ##                                IF LMDZ_Bands_file_name was given in lmdz.card THEN Get Bands file directly from server. Store it later with _0 suffix. 
    158     ##                                IF no LMDZ_Bands_file_name was given, start without Bands file. Store it later with _0 suffix. 
    159     ##        ELSE set LMDZ_adjust=y ; start without Bands file ; Store it later in PARAM/ directory in submit directory with suffix _1 ; 
    160     ## 
    161     ## For CumulPeriod=2 to LMDZ_NbPeriod_adjust ;  
    162     ##       Get Bands file from PARAM/ in submit directory (CumulPeriod-1) ; set LMDZ_adjust=y ; Store Bands file in PARAM/ ; 
    163     ## 
    164     ## For CumulPeriod > LMDZ_NbPeriod_adjust ; LMDZ_adjust=n ; Get Bands file from PARAM/ ; Do not store ; 
    165  
    166     if [ ${CumulPeriod} -eq 1 ] ; then 
    167         if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    168             if [ ! X${LMDZ_Bands_file_name} = X ] ; then 
    169                 IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat  
    170                 IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
    171                 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" 
    172             fi 
    173         fi 
    174     fi 
    175  
    176     LMDZ_adjust=n 
    177     [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
    178  
    179     RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
    180     [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
    181  
    182     # Get Bands file from PARAM directory if file exist 
    183     if ( [ ${CumulPeriod} -gt 1 ] && [ -f ${SUBMIT_DIR}/PARAM/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} ] ) ; then 
    184         IGCM_sys_Cp ${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 
    185         IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
    186     fi 
    187139 
    188140    ##-- GHG forcing : 
     
    390342    IGCM_comp_modifyDefFile blocker run.def dayref    ${InitDay} 
    391343    IGCM_comp_modifyDefFile blocker run.def nday      ${PeriodLengthInDays} 
    392     IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust} 
    393344 
    394345    # Set anneeref different for gcm and ce0l 
     
    554505{ 
    555506    IGCM_debug_PushStack "ATM_Finalize" 
    556  
    557     # If the file exist, copy Bands_ file to PARAM/ in submit directory. This file will be used for the simulation. 
    558     # Copy also the same file into ATM/Restart at ARCHIVE directory for backup. 
    559     if [ -f Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ] ; then  
    560       if [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] ; then 
    561         IGCM_sys_Cp 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} 
    562         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} 
    563       elif [ ${CumulPeriod} -eq 1 ] && [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    564         # Special case : first period and no adjust => Save bands file with suffix _0 
    565         IGCM_sys_Cp 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 
    566         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 
    567       fi 
    568     fi 
    569507 
    570508    # Add special treatement for CARBON CYCLE 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/PARAM/run.def

    r2847 r2859  
    2727ok_dynzon=n 
    2828## activation du calcul d equilibrage de charge 
    29 adjust= _AUTO_ 
     29adjust= n 
    3030## activation du filtre fft 
    3131use_filtre_fft=y 
Note: See TracChangeset for help on using the changeset viewer.