- Timestamp:
- 08/01/16 12:14:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver
r2859 r2954 435 435 fi 436 436 437 # config.def : Activate COSP 438 if [ ! X${lmdz_UserChoices_LMDZ_COSP_OK} = X ]; then 439 IGCM_comp_modifyDefFile nonblocker config.def ok_cosp ${lmdz_UserChoices_LMDZ_COSP_OK} 440 else 441 IGCM_comp_modifyDefFile nonblocker config.def ok_cosp n 442 fi 443 444 # config.def : Modify parameter pmagic if it is set in lmdz.card 445 if [ ! X${lmdz_UserChoices_pmagic} = X ]; then 446 IGCM_comp_modifyDefFile nonblocker config.def pmagic ${lmdz_UserChoices_pmagic} 447 else 448 # Take default value set in config.def 449 IGCM_comp_modifyDefFile nonblocker config.def pmagic DEFAULT 450 fi 451 437 452 # guide.def : Activate nudging if ok_guide=y set in lmdz.card 438 453 if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then … … 468 483 fi 469 484 470 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 471 # Add include of LMDZ context in iodef.xml 472 # In iodef.xml add on next line after "COMPONENT CONTEXT" 473 # <context id="LMDZ" src="./context_lmdz.xml"/> 474 echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 475 cp iodef.xml iodef.xml.tmp 476 sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 477 rm iodef.xml.tmp add.tmp 478 479 #Long Name as global attribute (if LongName is not empty) 480 if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 481 listfile=$(ls file_def*lmdz.xml) 482 echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 483 for file in ${listfile} 484 do 485 cp ${file} ${file}.tmp 486 sed -e "/<file id/r add.tmp" \ 487 ${file}.tmp > ${file} 488 rm ${file}.tmp 489 done 490 rm add.tmp 491 fi 492 493 # Set ok_all_xml=y in run.def 494 IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml y 495 else 496 # Deactivate ok_all_xml in run.def 497 IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml n 498 fi 499 485 # Add include of LMDZ context in iodef.xml 486 # In iodef.xml add on next line after "COMPONENT CONTEXT" 487 # <context id="LMDZ" src="./context_lmdz.xml"/> 488 echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 489 cp iodef.xml iodef.xml.tmp 490 sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 491 rm iodef.xml.tmp add.tmp 492 493 #Long Name as global attribute (if LongName is not empty) 494 if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 495 listfile=$(ls file_def*lmdz.xml) 496 echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 497 for file in ${listfile} 498 do 499 cp ${file} ${file}.tmp 500 sed -e "/<file id/r add.tmp" \ 501 ${file}.tmp > ${file} 502 rm ${file}.tmp 503 done 504 rm add.tmp 505 fi 506 500 507 IGCM_debug_PopStack "ATM_Update" 501 508 }
Note: See TracChangeset
for help on using the changeset viewer.