- Timestamp:
- 02/10/20 15:10:20 (4 years ago)
- Location:
- CONFIG/UNIFORM/v7/ICOLMDZOR_v7
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/CREATE_amip/config.card
r4690 r4921 27 27 PeriodLength=1Y 28 28 #============================ 29 #-- Compression level for netcdf output files 30 CompressionLevel=2 31 #============================ 29 32 # Source following file with module settings 30 33 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 31 34 #============================ 32 #-- Compression level for netcdf output files 33 CompressionLevel=2 35 # OptMode indicates the optimization mode choosen during compilation 36 # This variable is used in the executable name 37 OptMode=prod 34 38 35 39 #======================================================================== … … 44 48 [Executable] 45 49 #D- For each component: Real name of executable, Name of executable in the run directory 46 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 31MPI)50 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 31MPI) 47 51 ATM= ("","") 48 52 IOS= ("","") -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/CREATE_hadisst/config.card
r4690 r4921 27 27 PeriodLength=1Y 28 28 #============================ 29 #-- Compression level for netcdf output files 30 CompressionLevel=2 31 #============================ 29 32 # Source following file with module settings 30 33 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 31 34 #============================ 32 #-- Compression level for netcdf output files 33 CompressionLevel=2 35 # OptMode indicates the optimization mode choosen during compilation 36 # This variable is used in the executable name 37 OptMode=prod 34 38 35 39 #======================================================================== … … 44 48 [Executable] 45 49 #D- For each component: Real name of executable, Name of executable in the run directory 46 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 160MPI, 4OMP)50 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 47 51 ATM= ("","") 48 IOS= (xios_server .exe, xios.x, 10MPI)52 IOS= (xios_server_${OptMode}.exe, xios.x, 10MPI) 49 53 50 54 #======================================================================== -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/aquaplanet/CREATE_aquaplanet/config.card
r4896 r4921 27 27 PeriodLength=1Y 28 28 #============================ 29 #-- Compression level for netcdf output files 30 CompressionLevel=2 31 #============================ 29 32 # Source following file with module settings 30 33 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 31 34 #============================ 32 #-- Compression level for netcdf output files 33 CompressionLevel=2 35 # OptMode indicates the optimization mode choosen during compilation 36 # This variable is used in the executable name 37 OptMode=prod 34 38 35 39 #======================================================================== … … 44 48 [Executable] 45 49 #D- For each component: Real name of executable, Name of executable in the run directory 46 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 31MPI)50 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 31MPI) 47 51 ATM= ("","") 48 52 IOS= ("","") -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/aquaplanet/climAQUA_360d/config.card
r4690 r4921 27 27 PeriodLength=1Y 28 28 #============================ 29 #-- Compression level for netcdf output files 30 CompressionLevel=0 31 #============================ 29 32 # Source following file with module settings 30 33 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 31 34 #============================ 32 #-- Compression level for netcdf output files 33 CompressionLevel=0 35 # OptMode indicates the optimization mode choosen during compilation 36 # This variable is used in the executable name 37 OptMode=prod 34 38 35 39 #======================================================================== … … 44 48 [Executable] 45 49 #D- For each component: Real name of executable, Name of executable in the run directory 46 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 40MPI,4OMP)50 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI,4OMP) 47 51 ATM= ("","") 48 IOS= (xios_server .exe, xios.x, 1MPI)52 IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 49 53 50 54 #======================================================================== -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/clim_noleap/config.card
r4690 r4921 16 16 ExperimentName=test 17 17 SpaceName=TEST 18 # Source following file with module settings19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env20 18 #============================ 21 19 #D-- leap, noleap, 360d … … 33 31 #-- Compression level for netcdf output files 34 32 CompressionLevel=2 33 #============================ 34 # Source following file with module settings 35 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 36 #============================ 37 # OptMode indicates the optimization mode choosen during compilation 38 # This variable is used in the executable name 39 OptMode=prod 35 40 36 41 #======================================================================== … … 45 50 #D-- Executable - 46 51 [Executable] 47 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 40MPI)52 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI) 48 53 ATM= ("","") 49 IOS= (xios_server .exe, xios.x, 1MPI)54 IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 50 55 51 56 #======================================================================== … … 76 81 #D-- ICO - 77 82 [ICO] 78 # WriteFrequency is not used any more for LMDZ79 WriteFrequency=""80 83 # If config_Restarts_OverRule == 'n' all params are read 81 84 Restart= n … … 89 92 #D-- ATM - 90 93 [ATM] 91 #92 WriteFrequency=""93 94 # If config_Restarts_OverRule == 'n' all params are read 94 95 Restart= n … … 102 103 #D-- IOS - 103 104 [IOS] 104 WriteFrequency=""105 105 # If config_Restarts_OverRule == 'n' next 4 params are read 106 106 Restart= n -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/clim_noleap/config.card
r4690 r4921 16 16 ExperimentName=test 17 17 SpaceName=TEST 18 # Source following file with module settings19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env20 18 #============================ 21 19 #D-- leap, noleap, 360d … … 33 31 #-- Compression level for netcdf output files 34 32 CompressionLevel=2 33 #============================ 34 # Source following file with module settings 35 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 36 #============================ 37 # OptMode indicates the optimization mode choosen during compilation 38 # This variable is used in the executable name 39 OptMode=prod 35 40 36 41 #======================================================================== … … 47 52 #D-- Executable - 48 53 [Executable] 49 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 40MPI)54 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI) 50 55 ATM= ("","") 51 56 SRF= ("", "") 52 57 SBG= ("", "") 53 IOS= (xios_server .exe, xios.x, 1MPI)58 IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 54 59 55 60 #======================================================================== … … 80 85 #D-- ICO - 81 86 [ICO] 82 #83 WriteFrequency=""84 87 # If config_Restarts_OverRule == 'n' all params are read 85 88 Restart= n … … 93 96 #D-- ATM - 94 97 [ATM] 95 # WriteFrequency is not used any more for LMDZ96 WriteFrequency=""97 98 # If config_Restarts_OverRule == 'n' all params are read 98 99 Restart= n … … 106 107 #D-- SRF - 107 108 [SRF] 108 # WriteFrequency is not used any more for ORCHIDEE109 # Output files are now managed in orchidee.card110 WriteFrequency=""111 109 # If config_Restarts_OverRule == 'n' next 4 params are read 112 110 Restart= n … … 121 119 #D-- SBG - STOMATE 122 120 [SBG] 123 # WriteFrequency is not used any more for ORCHIDEE124 # Output files are now managed in stomate.card125 WriteFrequency=""126 121 # If config_Restarts_OverRule == 'n' next 4 params are read 127 122 Restart= n … … 136 131 #D-- IOS - 137 132 [IOS] 138 WriteFrequency=""139 133 # If config_Restarts_OverRule == 'n' next 4 params are read 140 134 Restart= n -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/highresmip/config.card
r4690 r4921 16 16 ExperimentName=test 17 17 SpaceName=TEST 18 # Source following file with module settings19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env20 18 #============================ 21 19 #D-- leap, noleap, 360d … … 34 32 # CompressionLevel=0 when using more that 1 xios server 35 33 CompressionLevel=0 34 #============================ 35 # Source following file with module settings 36 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 37 #============================ 38 # OptMode indicates the optimization mode choosen during compilation 39 # This variable is used in the executable name 40 OptMode=prod 36 41 37 42 #======================================================================== … … 47 52 #D-- Executable - 48 53 [Executable] 49 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 160MPI, 4OMP)54 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 50 55 ATM= ("","") 51 56 SRF= ("", "") 52 IOS= (xios_server .exe, xios.x, 1MPI)57 IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 53 58 54 59 #======================================================================== … … 79 84 #D-- ICO - 80 85 [ICO] 81 #82 WriteFrequency=""83 86 # If config_Restarts_OverRule == 'n' all params are read 84 87 Restart= n … … 92 95 #D-- ATM - 93 96 [ATM] 94 # WriteFrequency is not used any more for LMDZ95 WriteFrequency=""96 97 # If config_Restarts_OverRule == 'n' all params are read 97 98 Restart= n … … 105 106 #D-- SRF - 106 107 [SRF] 107 # WriteFrequency is not used any more for ORCHIDEE108 # Output files are now managed in orchidee.card109 WriteFrequency=""110 108 # If config_Restarts_OverRule == 'n' next 4 params are read 111 109 Restart= n … … 120 118 #D-- SBG - STOMATE 121 119 [SBG] 122 # WriteFrequency is not used any more for ORCHIDEE123 # Output files are now managed in stomate.card124 WriteFrequency=""125 120 # If config_Restarts_OverRule == 'n' next 4 params are read 126 121 Restart= n … … 135 130 #D-- IOS - 136 131 [IOS] 137 WriteFrequency=""138 132 # If config_Restarts_OverRule == 'n' next 4 params are read 139 133 Restart= n -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/highresmip_CMIP6/config.card
r4690 r4921 18 18 SpaceName=DEVT 19 19 Member=r1i1p1f1 20 # Source following file with module settings21 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env22 20 #============================ 23 21 #D-- leap, noleap, 360d … … 36 34 # CompressionLevel=0 when using more that 1 xios server 37 35 CompressionLevel=0 36 #============================ 37 # Source following file with module settings 38 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 39 #============================ 40 # OptMode indicates the optimization mode choosen during compilation 41 # This variable is used in the executable name 42 OptMode=prod 38 43 39 44 #======================================================================== … … 49 54 #D-- Executable - 50 55 [Executable] 51 ICO= (icosa_lmdz .exe, icosa_lmdz.exe, 160MPI, 4OMP)56 ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 52 57 ATM= ("","") 53 58 SRF= ("", "") 54 IOS= (xios_server .exe, xios.x, 12MPI, 4OMP)59 IOS= (xios_server_${OptMode}.exe, xios.x, 12MPI, 4OMP) 55 60 56 61 #======================================================================== … … 81 86 #D-- ICO - 82 87 [ICO] 83 #84 WriteFrequency=""85 88 # If config_Restarts_OverRule == 'n' all params are read 86 89 Restart= n … … 94 97 #D-- ATM - 95 98 [ATM] 96 # WriteFrequency is not used any more for LMDZ97 WriteFrequency=""98 99 # If config_Restarts_OverRule == 'n' all params are read 99 100 Restart= n … … 107 108 #D-- SRF - 108 109 [SRF] 109 # WriteFrequency is not used any more for ORCHIDEE110 # Output files are now managed in orchidee.card111 WriteFrequency=""112 110 # If config_Restarts_OverRule == 'n' next 4 params are read 113 111 Restart= n … … 122 120 #D-- SBG - STOMATE 123 121 [SBG] 124 # WriteFrequency is not used any more for ORCHIDEE125 # Output files are now managed in stomate.card126 WriteFrequency=""127 122 # If config_Restarts_OverRule == 'n' next 4 params are read 128 123 Restart= n … … 137 132 #D-- IOS - 138 133 [IOS] 139 WriteFrequency=""140 134 # If config_Restarts_OverRule == 'n' next 4 params are read 141 135 Restart= n -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver
r4604 r4921 9 9 if [ X${config_ListOfComponents_ICO} = X ] ; then 10 10 11 [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 12 11 # Read the resolution from the variables ResolAtm set in config.card UserChoices section or from .resol file 12 if [ X$ResolAtm != X ] ; then 13 # ResolAtm is set in config.card 14 RESOL_ATM_3D=${ResolAtm} 15 elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 16 # ResolAtm was not set in config.card, try to read .resol file 17 eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 18 else 19 IGCM_debug_Exit "ResolAtm is not set in config.card and the .resol file does not exist." 20 IGCM_debug_Verif_Exit 21 fi 22 13 23 RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 14 24 RESOL_ATM_X=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $1}' ) 15 25 RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 16 26 RESOL_ATM_XY="${RESOL_ATM_X}x${RESOL_ATM_Y}" 17 27 RESOL_ATM=LMD${RESOL_ATM_X}${RESOL_ATM_Y} 28 29 IGCM_debug_Print 1 "The atomsopheric resolution is ${RESOL_ATM_3D} " 18 30 else 19 31 RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z} … … 190 202 191 203 192 ## Modifiy204 ## Activate diagnostic output files and set output_level for each file 193 205 194 206 # histmth … … 372 384 echo "Activate coupling to INCA, set type_trac=inca in run.def" 373 385 IGCM_comp_modifyDefFile blocker run.def type_trac inca 386 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 374 387 elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 375 388 echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 376 389 IGCM_comp_modifyDefFile blocker run.def type_trac repr 377 390 IGCM_comp_modifyDefFile blocker run.def config_inca none 391 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 392 elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 393 echo "ESM config, set type_trac=co2i in run.def" 394 IGCM_comp_modifyDefFile blocker run.def type_trac co2i 395 IGCM_comp_modifyDefFile blocker run.def config_inca none 396 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 397 elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 398 echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 399 IGCM_comp_modifyDefFile blocker run.def type_trac coag 400 IGCM_comp_modifyDefFile blocker run.def config_inca none 401 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 378 402 else 379 403 echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 380 404 IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 381 405 IGCM_comp_modifyDefFile blocker run.def config_inca none 382 fi 383 384 385 # run.def : Activate the call to phytrac386 if [ ! X${lmdz_UserChoices_ iflag_phytrac} = X ]; then387 IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac}388 else 389 IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac 0406 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 0 407 fi 408 409 # run.def : Activate the new calving 410 if [ ! X${lmdz_UserChoices_cpl_old_calving} = X ]; then 411 IGCM_comp_modifyDefFile nonblocker run.def cpl_old_calving ${lmdz_UserChoices_cpl_old_calving} 412 else 413 IGCM_comp_modifyDefFile nonblocker run.def cpl_old_calving y 390 414 fi 391 415 … … 395 419 else 396 420 IGCM_comp_modifyDefFile nonblocker physiq.def ok_bug_cv_trac n 421 fi 422 423 # config.def : Activate aerosol strato 424 if [ ! X${lmdz_UserChoices_flag_aerosol_strat} = X ]; then 425 IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol_strat ${lmdz_UserChoices_flag_aerosol_strat} 426 else 427 IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol_strat DEFAULT 397 428 fi 398 429 … … 462 493 IGCM_comp_modifyDefFile nonblocker config.def pmagic DEFAULT 463 494 fi 495 496 if [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 497 # Set carbon cycle parameters according to parmeters in lmdz.card 498 IGCM_comp_modifyDefFile blocker config.def level_coupling_esm 2 499 IGCM_comp_modifyDefFile blocker config.def carbon_cycle_cpl ${lmdz_UserChoices_carbon_cycle_cpl} 500 IGCM_comp_modifyDefFile blocker config.def carbon_cycle_tr ${lmdz_UserChoices_carbon_cycle_tr} 501 IGCM_comp_modifyDefFile blocker config.def carbon_cycle_rad ${lmdz_UserChoices_carbon_cycle_rad} 502 else 503 # Take default value set in config.def 504 IGCM_comp_modifyDefFile nonblocker config.def level_coupling_esm DEFAULT 505 IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_cpl DEFAULT 506 IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 507 IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 508 fi 509 510 # config.def : Modify parameter ok_volcan if ok_volcan=y or LMDZ_strataero=y in lmdz.card 511 # Note: ok_volcan is a flag allowing a double-call with/without natural forcing (instead of with/without anthro forcing). 512 if [ ! X${lmdz_UserChoices_ok_volcan} = X ] || [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 513 IGCM_comp_modifyDefFile nonblocker config.def ok_volcan ${lmdz_UserChoices_ok_volcan} 514 else 515 # Take default value set in config.def 516 IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 517 fi 518 464 519 465 520 # physiq.def : Modify parameter tau_gl if it is set in lmdz.card … … 552 607 553 608 554 # Set interpolated output grid depending on resoultion 555 if [ ${RESOL_NBP} == 40 ] ; then 556 valuei=144 557 valuej=143 558 elif [ ${RESOL_NBP} == 80 ] ; then 559 valuei=360 560 valuej=180 561 elif [ ${RESOL_NBP} == 160 ] ; then 562 valuei=720 563 valuej=360 564 else 565 IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 566 IGCM_debug_Verif_Exit 567 fi 568 569 IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_lmdz.xml" 570 cp context_lmdz.xml context_lmdz.xml.init 571 sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 572 -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 573 context_lmdz.xml.init > context_lmdz.xml 609 # Set interpolated output grid depending on resoultion, only if ICO component is set in config.card 610 if [ ! "X${config_ListOfComponents_ICO}" = "X" ] ; then 611 if [ ${RESOL_NBP} == 40 ] ; then 612 valuei=144 613 valuej=143 614 elif [ ${RESOL_NBP} == 80 ] ; then 615 valuei=360 616 valuej=180 617 elif [ ${RESOL_NBP} == 160 ] ; then 618 valuei=720 619 valuej=360 620 else 621 IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 622 IGCM_debug_Verif_Exit 623 fi 624 625 IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_lmdz.xml" 626 cp context_lmdz.xml context_lmdz.xml.init 627 sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 628 -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 629 context_lmdz.xml.init > context_lmdz.xml 630 fi 574 631 575 632 … … 582 639 IGCM_debug_PushStack "ATM_Finalize" 583 640 641 IGCM_debug_Print 1 "FINALIZE ATM !" 642 584 643 IGCM_debug_PopStack "ATM_Finalize" 585 644 } -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/orchidee.driver
r4379 r4921 182 182 183 183 184 185 # Set interpolated output grid depending on resoultion 186 if [ ${RESOL_NBP} == 40 ] ; then 187 valuei=144 188 valuej=143 189 elif [ ${RESOL_NBP} == 80 ] ; then 190 valuei=360 191 valuej=180 192 elif [ ${RESOL_NBP} == 160 ] ; then 193 valuei=720 194 valuej=360 195 else 196 IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 197 IGCM_debug_Verif_Exit 198 fi 199 200 IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_orchidee.xml" 201 cp context_orchidee.xml context_orchidee.xml.init 202 sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 203 -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 204 context_orchidee.xml.init > context_orchidee.xml 205 184 # Set interpolated output grid depending on resoultion, only if ICO component is set in config.card 185 if [ ! "X${config_ListOfComponents_ICO}" = "X" ] ; then 186 if [ ${RESOL_NBP} == 40 ] ; then 187 valuei=144 188 valuej=143 189 elif [ ${RESOL_NBP} == 80 ] ; then 190 valuei=360 191 valuej=180 192 elif [ ${RESOL_NBP} == 160 ] ; then 193 valuei=720 194 valuej=360 195 else 196 IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 197 IGCM_debug_Verif_Exit 198 fi 199 200 IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_orchidee.xml" 201 cp context_orchidee.xml context_orchidee.xml.init 202 sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 203 -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 204 context_orchidee.xml.init > context_orchidee.xml 205 206 fi 207 206 208 IGCM_debug_PopStack "SRF_Update" 207 209 } -
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/compile_icolmdzor.sh
r4663 r4921 18 18 optmode=prod 19 19 # Resolution if compiling LMDZ in regular mode without DYNAMICO 20 # Use for example following "./compile_icolmdzor.sh -regular_l onlat144x142x79"20 # Use for example following "./compile_icolmdzor.sh -regular_latlon 144x142x79" 21 21 regular_latlon=no 22 22 # fcm_arch … … 26 26 export fcm_arch parallel xios 27 27 full_flag="" 28 full_xios="" 29 full_lmdz="" 30 full_orch="" 31 full_dyna="" 32 28 33 # Default netcdf_lib is used for XIOS but can be change by argument 29 34 netcdf_lib="" … … 32 37 datestr=`LC_ALL=C date +"%Y%m%dT%H%M"` 33 38 outfile=$submitdir/out_compile_icolmdzor.$datestr 34 rm -f $outfile;echo > $outfile39 echo > $outfile 35 40 echo; echo "Text output from compilation will be stored in file out_compile_icolmdzor.$datestr"; echo 36 41 … … 39 44 while (($# > 0)) ; do 40 45 case $1 in 41 "-h") cat << fin46 "-h") cat <<end_help 42 47 43 48 ######################################################################## … … 63 68 ./compile_icolmdzor.sh -regular_latlon 144x142x79 64 69 65 fin 70 end_help 66 71 exit;; 67 72 68 "-parallel") 69 parallel=$2 ; shift ; shift ;; 70 71 "-arch") 72 fcm_arch="$2" ; shift ; shift ;; 73 74 "-xios") 75 xios="$2" ; shift ; shift ;; 76 77 "-optmode") 78 optmode=$2 ; shift ; shift ;; 79 80 "-debug") 81 optmode=debug ; shift ;; 82 83 "-dev") 84 optmode=dev ; shift ;; 85 86 "-prod") 87 optmode=prod ; shift ;; 88 89 "-regular_latlon") 90 regular_latlon=yes ; 91 resol_atm_3d=$2 ; shift ; shift ;; 92 93 "-full") 94 full_flag="-full"; shift ;; 95 96 "-netcdf_lib_seq") 97 netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 98 99 *) 100 echo "unknown option "$2" , exiting..." 101 exit 73 "-parallel") parallel=$2 ; shift ; shift ;; 74 "-arch") fcm_arch="$2" ; shift ; shift ;; 75 "-xios") xios="$2" ; shift ; shift ;; 76 "-debug") optmode=debug ; shift ;; 77 "-dev") optmode=dev ; shift ;; 78 "-prod") optmode=prod ; shift ;; 79 "-regular_latlon") regular_latlon=yes ; resol_atm=$2 ; shift ; shift ;; 80 "-full") full_flag="-full"; full_xios="--full" ; full_lmdz="-full" ; full_orch="-full" ; full_dyna="-full" ; shift ;; 81 "-full_xios") full_xios="--full" ; shift ;; # Note only full_xios is using double dash: --full 82 "-full_lmdz") full_lmdz="-full" ; shift ;; 83 "-full_orch") full_orch="-full" ; shift ;; 84 "-full_dyna") full_dyna="-full" ; shift ;; 85 "-netcdf_lib_seq") netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 86 *) echo "unknown option "$1" , exiting..." ; exit 102 87 esac 103 88 done 104 89 105 echo "Following arguments are set in current compiling:" >> $outfile 106 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag regular_latlon=$regular_latlon" >> $outfile 90 echo "Following options are set in current compiling:" >> $outfile 91 echo " regular_latlon=$regular_latlon (if yes, then resol_atm=${resol_atm})" >> $outfile 92 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile 93 echo " full_flag=$full_flag, full_xios=$full_xios, full_lmdz=$full_lmdz, full_orch=$full_orch, full_dyna=$full_dyna" >> $outfile 107 94 echo >> $outfile 108 95 … … 115 102 # Find out current host and source specific paths and commands for the host 116 103 case $( hostname -s ) in 117 ada*)118 fcm_arch=X64_ ADA;;104 jean-zay*) 105 fcm_arch=X64_JEANZAY;; 119 106 irene*) 120 107 fcm_arch=X64_IRENE;; … … 130 117 fi 131 118 132 # Set a link to arch.env and source the fileif arch-${fcm_arch}.env file exist for current fcm_arch.119 # Set a link to arch.env if arch-${fcm_arch}.env file exist for current fcm_arch. 133 120 # The link arch.env is also set in config.card and will be used by libIGCM to ensure the same running environnement. 134 121 if [ -f ARCH/arch-${fcm_arch}.env ] ; then 135 122 echo >> $outfile 136 echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation ."137 echo "Note that this new environement willbe kept after compilation."138 echo " You might want to source again your personal environment after compilation. This must be done manually or by reconnection."123 echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation for all components." 124 echo "Note that this new environement might be kept after compilation." 125 echo "If this is the case, source again your personal environment after compilation." 139 126 echo " Personal module list before sourcing of ARCH/arch.env file:" >> $outfile 140 127 module list >> $outfile 2>&1 141 128 129 # Make a link to this file, to be used also in config.card 142 130 rm -f ARCH/arch.env 143 131 ln -s arch-${fcm_arch}.env ARCH/arch.env 132 133 # Source the file 144 134 source ARCH/arch.env >> $outfile 2>&1 145 135 … … 167 157 echo; echo "NOW COMPILE XIOS" 168 158 echo >> $outfile ; echo " NOW COMPILE XIOS" >> $outfile 169 echo ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_ flag>> $outfile170 ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_ flag>> $outfile 2>&1159 echo ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios >> $outfile 160 ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios >> $outfile 2>&1 171 161 # Test if compiling succeded 172 162 if [[ $? != 0 ]] ; then … … 175 165 fi 176 166 # Move executables to modipsl/bin 177 if [ $modipsl/modeles/XIOS/bin/xios_server.exe ] ; then178 mv $modipsl/modeles/XIOS/bin/xios_server.exe $modipsl/bin/ .167 if [ -f $modipsl/modeles/XIOS/bin/xios_server.exe ] ; then 168 mv $modipsl/modeles/XIOS/bin/xios_server.exe $modipsl/bin/xios_server_${optmode}.exe 179 169 else 180 170 echo "THERE IS A PROBLEM IN XIOS COMPILATION EXECUTABLE MISSING - STOP" … … 188 178 echo >> $outfile ; echo " NOW COMPILE ORCHIDEE" >> $outfile 189 179 190 echo ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag>> $outfile191 ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag>> $outfile 2>&1180 echo ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch >> $outfile 181 ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch >> $outfile 2>&1 192 182 # Test if compiling finished 193 183 if [[ $? != 0 ]] ; then … … 195 185 exit 196 186 fi 187 188 # If orchide driver executables have been compiled (option -driver), then rename executables to contain $optmode 189 if [ -f $modipsl/bin/orchidee_ol ] ; then mv $modipsl/bin/orchidee_ol $modipsl/bin/orchidee_ol_${optmode} ; fi 190 if [ -f $modipsl/bin/orchideedriver ] ; then mv $modipsl/bin/orchideedriver $modipsl/bin/orchideedriver_${optmode} ; fi 191 197 192 198 193 ## 2.4 Compile lmdz … … 215 210 fi 216 211 217 echo ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_ flag>> $outfile218 ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_ flag>> $outfile 2>&1212 echo ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz >> $outfile 213 ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz >> $outfile 2>&1 219 214 # Test if compiling finished 220 215 if [[ $? != 0 ]] ; then … … 229 224 echo >> $outfile ; echo " NOW COMPILE DYNAMICO" >> $outfile 230 225 231 echo ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_ flag>> $outfile232 ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_ flag>> $outfile 2>&1226 echo ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna >> $outfile 227 ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna >> $outfile 2>&1 233 228 # Test if compiling finished 234 229 if [[ $? != 0 ]] ; then … … 242 237 echo >> $outfile ; echo " NOW COMPILE ICOSA_LMDZ" >> $outfile 243 238 244 echo ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_ flag>> $outfile245 ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_ flag>> $outfile 2>&1239 echo ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna >> $outfile 240 ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna >> $outfile 2>&1 246 241 # Test if compiling finished 247 242 if [[ $? != 0 ]] ; then … … 251 246 # Move executables to modipsl/bin 252 247 if [ $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe ] ; then 253 mv $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe $modipsl/bin/ .248 mv $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe $modipsl/bin/icosa_lmdz_${optmode}.exe 254 249 else 255 250 echo "THERE IS A PROBLEM IN ICOSA_LMDZ COMPILATION EXECUTABLE MISSING - STOP" … … 264 259 cd $modipsl/modeles/LMDZ 265 260 # Compile LMDZ regular lat-lon exectuable 266 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm _3d}"267 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm _3d}" >> $outfile261 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 262 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" >> $outfile 268 263 269 264 # Check if the compilation of LMDZ was previsouly interupted prematured. … … 279 274 rm -f .lock 280 275 fi 281 echo ./makelmdz_fcm -d ${resol_atm _3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flaggcm >> $outfile282 ./makelmdz_fcm -d ${resol_atm _3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flaggcm >> $outfile 2>&1276 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm >> $outfile 277 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm >> $outfile 2>&1 283 278 # Test if compiling finished 284 279 if [[ $? != 0 ]] ; then … … 288 283 289 284 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 290 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm _3d}"291 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm _3d}" >> $outfile292 293 echo ./makelmdz_fcm -d ${resol_atm _3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flagce0l >> $outfile294 ./makelmdz_fcm -d ${resol_atm _3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flagce0l >> $outfile 2>&1285 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 286 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 287 288 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 289 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 2>&1 295 290 # Test if compiling finished 296 291 if [[ $? != 0 ]] ; then … … 301 296 # Find executable suffix 302 297 if [ $parallel == seq ] || [ $parallel == none ] ; then 303 suffix=_${resol_atm _3d}_phylmd_seq_orch298 suffix=_${resol_atm}_phylmd_seq_orch.e 304 299 else 305 suffix=_${resol_atm _3d}_phylmd_para_mem_orch306 fi 307 echo suffix = $suffix300 suffix=_${resol_atm}_phylmd_para_mem_orch.e 301 fi 302 echo gcm suffix = $suffix 308 303 309 304 # Move executables to modipsl/bin folder 310 305 echo "Move gcm.e and ce0l executable to modipsl/bin" 311 if [ $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ; then mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm_3d}.e ; fi 312 if [ $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e ] ; then mv $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e $modipsl/bin/ce0l_${resol_atm_3d}.e ; fi 313 314 # Write .resol file 315 cd $submitdir 316 resol2D=$( echo ${resol_atm_3d} | awk '-Fx' '{print $1}' )$( echo ${resol_atm_3d} | awk '-Fx' '{print $2}' ) 317 echo "noORCAxLMD$resol2D" >.resol 318 echo "RESOL_ATM_3D=${resol_atm_3d}" >>.resol 306 if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ; then 307 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 308 else 309 echo "ERROR gcm${suffix} executable does not exist." 310 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 311 exit 312 fi 313 314 if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ; then 315 mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}.e 316 else 317 echo "ERROR ce0l${suffix} executable does not exist." 318 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 319 exit 320 fi 319 321 fi 320 322
Note: See TracChangeset
for help on using the changeset viewer.