Changeset 1688 for CONFIG/UNIFORM/u1/LMDZREPR_u1/GENERAL
- Timestamp:
- 03/16/12 17:05:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/u1/LMDZREPR_u1/GENERAL/DRIVER/lmdz.driver
r1670 r1688 46 46 47 47 ##- Create_etat0_limit version 48 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices CREATE49 48 CREATE=${lmdz_UserChoices_CREATE} 50 49 echo create_etat0_limit version : ${CREATE} … … 98 97 99 98 ## Read LMDZ_NbPeriod_adjust option in lmdz.card 100 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 101 LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 99 if [ X"${lmdz_UserChoices_LMDZ_NbPeriod_adjust}" = X"" ] ; then 100 # The variable is not in lmdz.card, set default value 101 LMDZ_NbPeriod_adjust=0 102 else 103 LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 104 fi 102 105 103 106 if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 104 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 105 LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 107 LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 106 108 fi 107 109 … … 160 162 if [ ${CumulPeriod} -eq 1 ] ; then 161 163 if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 162 IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 163 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 164 IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 165 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" 164 if [ ! X${LMDZ_Bands_file_name} = X] ; then 165 IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 166 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 167 IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 168 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" 169 fi 166 170 fi 167 171 fi … … 367 371 368 372 ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 369 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta370 373 ByPass_hgardfou_teta=${lmdz_UserChoices_ByPass_hgardfou_teta} 371 if [ ${ByPass_hgardfou_teta} = y] ; then374 if [ X"${ByPass_hgardfou_teta}" = X"y" ] ; then 372 375 awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 373 376 IGCM_sys_Mv gcm.def.tmp gcm.def … … 381 384 382 385 ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 383 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats384 386 ByPass_hgardfou_mats=${lmdz_UserChoices_ByPass_hgardfou_mats} 385 if [ ${ByPass_hgardfou_mats} = y] ; then387 if [ X"${ByPass_hgardfou_mats}" = X"y" ] ; then 386 388 sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 387 389 IGCM_sys_Mv gcm.def.tmp gcm.def
Note: See TracChangeset
for help on using the changeset viewer.