Changeset 2341 for CONFIG/UNIFORM
- Timestamp:
- 09/25/14 15:01:47 (10 years ago)
- Location:
- CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/lmdz.driver
r2336 r2341 1 1 #!/bin/ksh 2 2 #----------------------------------------------------------------- 3 function LMDZ_sed_xml4 {5 # Usage : LMDZ_sed_xml xml_file output_file attribute value6 # In file xml_file modify at the line containing id="output_file" the attribute "attribute=xxx" into "attribute=value"7 8 IGCM_debug_PushStack "LMDZ_sed_xml"9 # Test if the fichier exist10 if [ ! -f ${1} ] ; then11 echo "WARNING : ${1} file does not exist. Following will not be done : LMDZ_sed_xml : ${1} ${2} ${3} ${4}"12 IGCM_debug_PopStack "LMDZ_sed_xml"13 return14 fi15 sed -e "/id=\"${2}\"/s/\(${3}=\"\)[^\"]*\(\"\)/\1${4}\2/" ${1} > ${1}.tmp16 RET=$?17 echo "LMDZ_sed_xml : ${1} ${2} ${3} ${4}"18 \mv ${1}.tmp ${1}19 IGCM_debug_PopStack "LMDZ_sed_xml"20 return $RET21 }22 23 3 function ATM_Initialize 24 4 { … … 359 339 # XIOS XML definition 360 340 # Default init : files are desactivated 361 LMDZ_sed_xmlfile_def_histmth_lmdz.xml histmth enabled .FALSE.362 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday enabled .FALSE.363 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf enabled .FALSE.364 LMDZ_sed_xmlfile_def_histfh3h_lmdz.xml histfh3h enabled .FALSE.365 LMDZ_sed_xmlfile_def_histhf3hm_lmdz.xml histfh3hm enabled .FALSE.366 LMDZ_sed_xmlfile_def_histstn_lmdz.xml histstn enabled .FALSE.367 LMDZ_sed_xmlfile_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE.368 LMDZ_sed_xmlfile_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE.369 LMDZ_sed_xmlfile_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE.341 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE. 342 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .FALSE. 343 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .FALSE. 344 IGCM_comp_modifyXmlFile force file_def_histfh3h_lmdz.xml histfh3h enabled .FALSE. 345 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histfh3hm enabled .FALSE. 346 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .FALSE. 347 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE. 348 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 349 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 370 350 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 371 351 # Default output level : 5 372 LMDZ_sed_xmlfile_def_histmth_lmdz.xml histmth output_level 5373 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday output_level 5374 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf output_level 5375 LMDZ_sed_xmlfile_def_histfh3h_lmdz.xml histfh3h output_level 5376 LMDZ_sed_xmlfile_def_histhf3hm_lmdz.xml histfh3hm output_level 5377 LMDZ_sed_xmlfile_def_histstn_lmdz.xml histstn output_level 5378 LMDZ_sed_xmlfile_def_histmthNMC_lmdz.xml histmthNMC output_level 5379 LMDZ_sed_xmlfile_def_histdayNMC_lmdz.xml histdayNMC output_level 5380 LMDZ_sed_xmlfile_def_histhfNMC_lmdz.xml histhfNMC output_level 5352 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5 353 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5 354 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 355 IGCM_comp_modifyXmlFile force file_def_histfh3h_lmdz.xml histfh3h output_level 5 356 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histfh3hm output_level 5 357 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 358 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 359 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 360 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 381 361 # Filling of XML files 382 362 if [ X${ok_mensuel} = Xy ] ; then 383 LMDZ_sed_xmlfile_def_histmth_lmdz.xml histmth enabled .TRUE.384 LMDZ_sed_xmlfile_def_histmth_lmdz.xml histmth output_freq 1mo385 LMDZ_sed_xmlfile_def_histmth_lmdz.xml histmth name histmth363 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE. 364 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 365 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 386 366 fi 387 367 if [ X${ok_journe} = Xy ] ; then 388 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday enabled .TRUE.389 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday output_freq 1d390 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday name histday368 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE. 369 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 370 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 391 371 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 392 LMDZ_sed_xmlfile_def_histday_lmdz.xml histday output_level 2372 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 393 373 fi 394 374 fi 395 375 if [ X${ok_hf} = Xy ] ; then 396 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf enabled .TRUE.397 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf output_freq 6h398 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf name histhf376 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE. 377 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 378 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 399 379 if [ X${OutLevel} = Xlow ] ; then 400 LMDZ_sed_xmlfile_def_histhf_lmdz.xml histhf output_level 2380 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 2 401 381 fi 402 382 fi 403 383 if [ X${ok_hf3h} = Xy ] ; then 404 LMDZ_sed_xmlfile_def_histhf3h_lmdz.xml histhf3h enabled .TRUE.405 LMDZ_sed_xmlfile_def_histhf3h_lmdz.xml histhf3h output_freq 3h406 LMDZ_sed_xmlfile_def_histhf3h_lmdz.xml histhf3h name histhf3h384 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE. 385 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 386 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 407 387 fi 408 388 if [ X${ok_hf3hm} = Xy ] ; then 409 LMDZ_sed_xmlfile_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE.410 LMDZ_sed_xmlfile_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h411 LMDZ_sed_xmlfile_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm389 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE. 390 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 391 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 412 392 fi 413 393 if [ X${ok_stn} = Xy ] ; then 414 LMDZ_sed_xmlfile_def_histstn_lmdz.xml histstn enabled .TRUE.415 LMDZ_sed_xmlfile_def_histstn_lmdz.xml histstn output_freq 1800s416 LMDZ_sed_xmlfile_def_histstn_lmdz.xml histstn name histstn394 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE. 395 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 396 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 417 397 fi 418 398 if [ X${LMDZ_NMC_monthly} = Xy ] ; then 419 LMDZ_sed_xmlfile_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE.420 LMDZ_sed_xmlfile_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo421 LMDZ_sed_xmlfile_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC399 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE. 400 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 401 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 422 402 fi 423 403 if [ X${LMDZ_NMC_daily} = Xy ] ; then 424 LMDZ_sed_xmlfile_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE.425 LMDZ_sed_xmlfile_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d426 LMDZ_sed_xmlfile_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC404 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE. 405 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 406 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 427 407 fi 428 408 if [ X${LMDZ_NMC_hf} = Xy ] ; then 429 LMDZ_sed_xmlfile_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE.430 LMDZ_sed_xmlfile_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h431 LMDZ_sed_xmlfile_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC409 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE. 410 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 411 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 432 412 fi 433 413 fi -
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/orchidee.driver
r2338 r2341 1 1 #!/bin/ksh 2 3 2 #D- Driver du script pour ORCHIDEE 4 5 function ORCHIDEE_sed6 {7 IGCM_debug_PushStack "ORCHIDEE_sed"8 9 sed -e "s/^${1}\ *=.*/${1}= ${2}/" \10 orchidee.def > orchidee.def.tmp11 RET=$?12 echo "ORCHIDEE_sed : ${1} ${2}"13 \mv orchidee.def.tmp orchidee.def14 15 IGCM_debug_PopStack "ORCHIDEE_sed"16 return $RET17 }18 19 function ORCHIDEE_sed_xml20 {21 # Usage : ORCHIDEE_sed_xml xml_file output_file attribute value22 # In file xml_file modify at the line containing id="output_file" the attribute "attribute=xxx" into "attribute=value"23 24 # Test if the fichier exist25 if [ ! -f ${1} ] ; then26 echo "WARNING : ${1} file does not exist. Following will not be done : ORCHIDEE_sed : ${1} ${2} ${3} ${4}"27 IGCM_debug_PopStack "ORCHIDEE_sed_xml"28 return29 fi30 sed -e "/id=\"${2}\"/s/\(${3}=\"\)[^\"]*\(\"\)/\1${4}\2/" ${1} > ${1}.tmp31 RET=$?32 echo "ORCHIDEE_sed : ${1} ${2} ${3} ${4}"33 \mv ${1}.tmp ${1}34 35 return $RET36 }37 38 3 #----------------------------------------------------------------- 39 4 function SRF_Initialize … … 76 41 77 42 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 78 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .FALSE.79 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba2 enabled .FALSE.43 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .FALSE. 44 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .FALSE. 80 45 IGCM_comp_modifyDefFile nonblocker orchidee.def XIOS_ORCHIDEE_OK y 81 46 else … … 90 55 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) 91 56 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 92 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.93 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq ${WriteInYears}y94 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history57 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 58 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInYears}y 59 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 95 60 fi 96 61 ;; 97 62 1M) 98 63 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 99 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.100 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq 1mo101 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history64 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1mo 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 102 67 fi 103 68 case ${config_UserChoices_PeriodLength} in … … 116 81 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 117 82 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 118 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.119 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq ${WriteInMonths}mo120 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history83 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 84 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInMonths}mo 85 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 121 86 fi 122 87 case ${config_UserChoices_PeriodLength} in … … 132 97 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 133 98 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 134 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.135 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq ${SECHIBA_WRITE_STEP}s136 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history99 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 100 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${SECHIBA_WRITE_STEP}s 101 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 137 102 fi 138 103 ;; … … 141 106 5D|5d) 142 107 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 143 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.144 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq 5d145 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history108 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 109 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 5d 110 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 146 111 fi 147 112 (( SECHIBA_WRITE_STEP = 5 * 86400 )) … … 149 114 1D|1d) 150 115 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 151 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.152 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq 1d153 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history116 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 117 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1d 118 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 154 119 fi 155 120 (( SECHIBA_WRITE_STEP = 86400 )) … … 158 123 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 159 124 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 160 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.161 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s162 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history125 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 126 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 127 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 163 128 fi 164 129 (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; … … 180 145 IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTFILE2 y 181 146 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 182 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba2 enabled .TRUE.183 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba2 output_freq 10800s184 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba2 name sechiba_out_2147 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .TRUE. 148 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 output_freq 10800s 149 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 name sechiba_out_2 185 150 fi 186 151 else -
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/stomate.driver
r2333 r2341 21 21 22 22 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 23 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .FALSE.24 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .FALSE.23 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .FALSE. 24 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .FALSE. 25 25 fi 26 26 case ${config_SBG_WriteFrequency} in … … 30 30 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) 31 31 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 32 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.33 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq ${WriteInYears}y34 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history35 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.36 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq ${WriteInYears}y37 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history32 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 33 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInYears}y 34 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 35 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 36 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInYears}y 37 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 38 38 39 39 fi … … 41 41 1M|1m) 42 42 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 43 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.44 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq 1mo45 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history46 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.47 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq 1mo48 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history43 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 44 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1mo 45 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 46 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 47 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1mo 48 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 49 49 fi 50 50 case ${config_UserChoices_PeriodLength} in … … 62 62 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 63 63 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 64 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.65 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo66 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history67 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.68 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo69 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history64 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 67 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 68 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo 69 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 70 70 fi 71 71 case ${config_UserChoices_PeriodLength} in … … 81 81 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) 82 82 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 83 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.84 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq ${STOMATE_WRITE_STEP}s85 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history86 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.87 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq ${STOMATE_WRITE_STEP}s88 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history83 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 84 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${STOMATE_WRITE_STEP}s 85 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 86 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 87 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${STOMATE_WRITE_STEP}s 88 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 89 89 fi 90 90 ;; … … 94 94 (( STOMATE_WRITE_STEP = 5 )) 95 95 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 96 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.97 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq 5d98 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history99 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.100 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq 5d101 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history96 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 97 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 5d 98 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 99 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 100 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 5d 101 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 102 102 fi 103 103 ;; … … 105 105 (( STOMATE_WRITE_STEP = 1 )) 106 106 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 107 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 enabled .TRUE.108 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 output_freq 1d109 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate1 name stomate_history110 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.111 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq 1d112 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history107 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 108 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1d 109 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 110 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 111 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1d 112 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 113 113 fi 114 114 ;; … … 116 116 WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 117 117 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 118 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 enabled .TRUE.119 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s120 ORCHIDEE_sed_xmlfile_def_orchidee.xml sechiba1 name sechiba_history121 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 enabled .TRUE.122 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s123 ORCHIDEE_sed_xmlfile_def_orchidee.xml stomate2 name stomate_ipcc_history118 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 119 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 120 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 121 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 122 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s 123 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 124 124 fi 125 125 (( STOMATE_WRITE_STEP = 1 )) ;; -
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/xios.driver
r2335 r2341 1 1 #!/bin/ksh 2 3 function XIOS_sed_xml4 {5 # Usage : XIOS_sed_xml xml_file attribute value6 # In file xml_file modify at the line containing id="attribute" the attribute value ">value<"7 IGCM_debug_PushStack "XIOS_sed_xml"8 # Test if the fichier exist9 if [ ! -f ${1} ] ; then10 echo "WARNING : ${1} file does not exist. Following will not be done : XIOS_sed_xml : ${1} ${2} ${3}"11 IGCM_debug_PopStack "XIOS_sed_xml"12 return13 fi14 sed -e "s/\(<[^\"]*\"${2}\".*>\)\([^<]*\)\(<[^>]*\)/\1${3}\3/" ${1} > ${1}.tmp15 RET=$?16 echo "XIOS_sed_xml" : ${1} ${2} ${3}17 \mv ${1}.tmp ${1}18 IGCM_debug_PopStack "XIOS_sed_xml"19 return $RET20 }21 22 2 #----------------------------------- 23 3 function IOS_Initialize … … 37 17 echo UPDATE IOS !!! 38 18 # Activate server mode 39 XIOS_sed_xml iodef.xml using_servertrue19 IGCM_comp_modifyXmlfile force iodef.xml using_server NONE true 40 20 # If lmdz_UserChoices_XIOS=y add LMDZ as component id : 41 21 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 42 XIOS_sed_xml iodef.xml oasis_codes_idLMDZ,oceanx22 IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 43 23 fi 44 24 if [ -f namcouple ] ; then
Note: See TracChangeset
for help on using the changeset viewer.