Changeset 2859 for CONFIG/UNIFORM/v6/IPSLCM6/GENERAL
- Timestamp:
- 05/19/16 13:35:11 (8 years ago)
- Location:
- CONFIG/UNIFORM/v6/IPSLCM6/GENERAL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver
r2841 r2859 80 80 done 81 81 82 ## Read LMDZ_NbPeriod_adjust option in lmdz.card83 if [ X"${lmdz_UserChoices_LMDZ_NbPeriod_adjust}" = X"" ] ; then84 # The variable is not in lmdz.card, set default value85 LMDZ_NbPeriod_adjust=086 else87 LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust}88 fi89 90 if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then91 LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name}92 fi93 94 95 82 ## Read LMDZ_COSP_OK in lmdz.card 96 83 if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then … … 150 137 { 151 138 IGCM_debug_PushStack "ATM_Update" 152 153 154 ## Algorithme for special treatment for Bands_xxx file155 ## For CumulPeriod=1 ;156 ## IF NbPeriod_Adjust = 0 ; set LMDZ_adjust=n157 ## 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 ] ; then167 if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then168 if [ ! X${LMDZ_Bands_file_name} = X ] ; then169 IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat170 IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat171 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 fi173 fi174 fi175 176 LMDZ_adjust=n177 [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y178 179 RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart180 [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))181 182 # Get Bands file from PARAM directory if file exist183 if ( [ ${CumulPeriod} -gt 1 ] && [ -f ${SUBMIT_DIR}/PARAM/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} ] ) ; then184 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.dat185 IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat186 fi187 139 188 140 ##-- GHG forcing : … … 390 342 IGCM_comp_modifyDefFile blocker run.def dayref ${InitDay} 391 343 IGCM_comp_modifyDefFile blocker run.def nday ${PeriodLengthInDays} 392 IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust}393 344 394 345 # Set anneeref different for gcm and ce0l … … 554 505 { 555 506 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 ] ; then560 if [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] ; then561 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 ] ; then564 # Special case : first period and no adjust => Save bands file with suffix _0565 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_0566 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_0567 fi568 fi569 507 570 508 # Add special treatement for CARBON CYCLE -
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/run.def
r2847 r2859 27 27 ok_dynzon=n 28 28 ## activation du calcul d equilibrage de charge 29 adjust= _AUTO_29 adjust= n 30 30 ## activation du filtre fft 31 31 use_filtre_fft=y
Note: See TracChangeset
for help on using the changeset viewer.