- Timestamp:
- 02/07/20 16:06:07 (4 years ago)
- Location:
- CONFIG/UNIFORM/v6
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/pdControl_MR025/COMP/lmdz.card
r4696 r4918 33 33 ByPass_hgardfou_mats=n 34 34 35 # Set OutLevel to choose the level of output for LMDZ 36 # OutLevel=low/medium/high 37 OutLevel=low 38 39 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 35 # Specify which output file to activate and at which output_level 36 # Use an integer to specify the output level or NONE if to deactivate the file 37 # output_level_filename=1 : activate the corresponding file with low output level 38 # output_level_filename=10 : activate the corresponding file with high output level 39 # output_level_filename=NONE : the file will not be written 40 output_level_histmth = 5 41 output_level_histday = NONE 42 output_level_histhf = NONE 43 output_level_histmthNMC = NONE 44 output_level_histdayNMC = NONE 45 output_level_histhfNMC = NONE 46 output_level_histstrataer = NONE 47 output_level_histdaystrataer = NONE 48 output_level_histstn = NONE 49 50 # Activate COSP in config.def and set corresponding output files 40 51 LMDZ_COSP_OK=y 41 LMDZ_COSP_monthly=n 42 LMDZ_COSP_daily=n 43 LMDZ_COSP_hf=n 44 45 # Set NMC output frequency (monthly, daily, HF) = y/n 46 LMDZ_NMC_monthly=n 47 LMDZ_NMC_daily=n 48 LMDZ_NMC_hf=n 52 output_level_histmthCOSP = NONE 53 output_level_histdayCOSP = NONE 54 output_level_histhfCOSP = NONE 49 55 50 56 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/pdControl_MR025/config.card
r4795 r4918 68 68 #D-- ATM - 69 69 [ATM] 70 WriteFrequency="1M"71 70 # If config_Restarts_OverRule == 'n' next 4 params are read 72 71 Restart= n … … 107 106 #D-- SRF - 108 107 [SRF] 109 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card110 WriteFrequency=""111 108 # If config_Restarts_OverRule == 'n' next 4 params are read 112 109 Restart= n … … 121 118 #D-- SBG - STOMATE 122 119 [SBG] 123 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card124 WriteFrequency=""125 120 # If config_Restarts_OverRule == 'n' next 4 params are read 126 121 Restart= n … … 148 143 #D-- IOS - 149 144 [IOS] 150 WriteFrequency=""151 145 # If config_Restarts_OverRule == 'n' next 4 params are read 152 146 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/pdControl_TEST/COMP/lmdz.card
r4696 r4918 33 33 ByPass_hgardfou_mats=n 34 34 35 # Set OutLevel to choose the level of output for LMDZ 36 # OutLevel=low/medium/high 37 OutLevel=low 38 39 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 35 # Specify which output file to activate and at which output_level 36 # Use an integer to specify the output level or NONE if to deactivate the file 37 # output_level_filename=1 : activate the corresponding file with low output level 38 # output_level_filename=10 : activate the corresponding file with high output level 39 # output_level_filename=NONE : the file will not be written 40 output_level_histmth = 5 41 output_level_histday = NONE 42 output_level_histhf = NONE 43 output_level_histmthNMC = NONE 44 output_level_histdayNMC = NONE 45 output_level_histhfNMC = NONE 46 output_level_histstrataer = NONE 47 output_level_histdaystrataer = NONE 48 output_level_histstn = NONE 49 50 # Activate COSP in config.def and set corresponding output files 40 51 LMDZ_COSP_OK=y 41 LMDZ_COSP_monthly=n 42 LMDZ_COSP_daily=n 43 LMDZ_COSP_hf=n 44 45 # Set NMC output frequency (monthly, daily, HF) = y/n 46 LMDZ_NMC_monthly=n 47 LMDZ_NMC_daily=n 48 LMDZ_NMC_hf=n 52 output_level_histmthCOSP = NONE 53 output_level_histdayCOSP = NONE 54 output_level_histhfCOSP = NONE 49 55 50 56 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/pdControl_TEST/config.card
r4645 r4918 65 65 #D-- ATM - 66 66 [ATM] 67 WriteFrequency="1M HF"68 67 # If config_Restarts_OverRule == 'n' next 4 params are read 69 68 Restart= y … … 116 115 #D-- SRF - 117 116 [SRF] 118 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card119 WriteFrequency=""120 117 # If config_Restarts_OverRule == 'n' next 4 params are read 121 118 Restart= y … … 130 127 #D-- SBG - STOMATE 131 128 [SBG] 132 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card133 WriteFrequency=""134 129 # If config_Restarts_OverRule == 'n' next 4 params are read 135 130 Restart= y … … 157 152 #D-- IOS - 158 153 [IOS] 159 WriteFrequency=""160 154 # If config_Restarts_OverRule == 'n' next 4 params are read 161 155 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/piControl_TEST/COMP/lmdz.card
r4696 r4918 33 33 ByPass_hgardfou_mats=n 34 34 35 # Set OutLevel to choose the level of output for LMDZ 36 # OutLevel=low/medium/high 37 OutLevel=low 38 39 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 35 # Specify which output file to activate and at which output_level 36 # Use an integer to specify the output level or NONE if to deactivate the file 37 # output_level_filename=1 : activate the corresponding file with low output level 38 # output_level_filename=10 : activate the corresponding file with high output level 39 # output_level_filename=NONE : the file will not be written 40 output_level_histmth = 5 41 output_level_histday = NONE 42 output_level_histhf = NONE 43 output_level_histmthNMC = NONE 44 output_level_histdayNMC = NONE 45 output_level_histhfNMC = NONE 46 output_level_histstrataer = NONE 47 output_level_histdaystrataer = NONE 48 output_level_histstn = NONE 49 50 # Activate COSP in config.def and set corresponding output files 40 51 LMDZ_COSP_OK=y 41 LMDZ_COSP_monthly=n 42 LMDZ_COSP_daily=n 43 LMDZ_COSP_hf=n 44 45 # Set NMC output frequency (monthly, daily, HF) = y/n 46 LMDZ_NMC_monthly=n 47 LMDZ_NMC_daily=n 48 LMDZ_NMC_hf=n 52 output_level_histmthCOSP = NONE 53 output_level_histdayCOSP = NONE 54 output_level_histhfCOSP = NONE 49 55 50 56 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/piControl_TEST/config.card
r4645 r4918 65 65 #D-- ATM - 66 66 [ATM] 67 WriteFrequency="1M HF"68 67 # If config_Restarts_OverRule == 'n' next 4 params are read 69 68 Restart= y … … 116 115 #D-- SRF - 117 116 [SRF] 118 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card119 WriteFrequency=""120 117 # If config_Restarts_OverRule == 'n' next 4 params are read 121 118 Restart= y … … 130 127 #D-- SBG - STOMATE 131 128 [SBG] 132 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card133 WriteFrequency=""134 129 # If config_Restarts_OverRule == 'n' next 4 params are read 135 130 Restart= y … … 157 152 #D-- IOS - 158 153 [IOS] 159 WriteFrequency=""160 154 # If config_Restarts_OverRule == 'n' next 4 params are read 161 155 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLESM/AER/piControl_AER_TEST/COMP/lmdz.card
r4915 r4918 29 29 ByPass_hgardfou_mats=n 30 30 31 # Set OutLevel to choose the level of output for LMDZ 32 # OutLevel=low/medium/high 33 OutLevel=low 34 35 # Set COSP activation and output frequency (monthly, daily, HF) = y/n 31 # Specify which output file to activate and at which output_level 32 # Use an integer to specify the output level or NONE if to deactivate the file 33 # output_level_filename=1 : activate the corresponding file with low output level 34 # output_level_filename=10 : activate the corresponding file with high output level 35 # output_level_filename=NONE : the file will not be written 36 output_level_histmth = 5 37 output_level_histday = NONE 38 output_level_histhf = NONE 39 output_level_histmthNMC = NONE 40 output_level_histdayNMC = NONE 41 output_level_histhfNMC = NONE 42 output_level_histstrataer = NONE 43 output_level_histdaystrataer = NONE 44 output_level_histstn = NONE 45 46 # Activate COSP in config.def and set corresponding output files 36 47 LMDZ_COSP_OK=y 37 LMDZ_COSP_monthly=n 38 LMDZ_COSP_daily=n 39 LMDZ_COSP_hf=n 40 41 # Set NMC output frequency (monthly, daily, HF) = y/n 42 LMDZ_NMC_monthly=n 43 LMDZ_NMC_daily=n 44 LMDZ_NMC_hf=n 48 output_level_histmthCOSP = NONE 49 output_level_histdayCOSP = NONE 50 output_level_histhfCOSP = NONE 45 51 46 52 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLESM/AER/piControl_AER_TEST/config.card
r4707 r4918 65 65 #D-- ATM - 66 66 [ATM] 67 WriteFrequency="1M HF"68 67 # If config_Restarts_OverRule == 'n' next 4 params are read 69 68 Restart= n … … 116 115 #D-- SRF - 117 116 [SRF] 118 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card119 WriteFrequency=""120 117 # If config_Restarts_OverRule == 'n' next 4 params are read 121 118 Restart= y … … 130 127 #D-- SBG - STOMATE 131 128 [SBG] 132 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card133 WriteFrequency=""134 129 # If config_Restarts_OverRule == 'n' next 4 params are read 135 130 Restart= y … … 157 152 #D-- IOS - 158 153 [IOS] 159 WriteFrequency=""160 154 # If config_Restarts_OverRule == 'n' next 4 params are read 161 155 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLESM/CO2/piControl_TEST/COMP/lmdz.card
r4696 r4918 33 33 ByPass_hgardfou_mats=n 34 34 35 # Set OutLevel to choose the level of output for LMDZ36 # OutLevel=low/medium/high37 OutLevel=low38 39 # Set COSP activation and output frequency (monthly, daily, HF) = y/n40 LMDZ_COSP_OK=n41 LMDZ_COSP_monthly=n42 LMDZ_COSP_daily=n43 LMDZ_COSP_hf=n44 45 # Set NMC output frequency (monthly, daily, HF) = y/n46 LMDZ_NMC_monthly=n47 LMDZ_NMC_daily=n48 LMDZ_NMC_hf=n49 50 35 ### ESM-CO2 configuration 51 36 # carbon_cycle_cpl: coupling of carbon fluxes between ATM/OCE, ATM/SRF … … 56 41 carbon_cycle_rad=n 57 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 58 63 59 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLESM/CO2/piControl_TEST/config.card
r4645 r4918 67 67 #D-- ATM - 68 68 [ATM] 69 WriteFrequency="1D HF"70 69 # If config_Restarts_OverRule == 'n' next 4 params are read 71 70 Restart= y … … 118 117 #D-- SRF - 119 118 [SRF] 120 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card121 WriteFrequency=""122 119 # If config_Restarts_OverRule == 'n' next 4 params are read 123 120 Restart= y … … 132 129 #D-- SBG - STOMATE 133 130 [SBG] 134 # WriteFrequency is not used for ORCHIDEE, see orchidee.card/stomate.card135 WriteFrequency=""136 131 # If config_Restarts_OverRule == 'n' next 4 params are read 137 132 Restart= y … … 159 154 #D-- IOS - 160 155 [IOS] 161 WriteFrequency=""162 156 # If config_Restarts_OverRule == 'n' next 4 params are read 163 157 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZ/CREATE_amip/config.card
r4722 r4918 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZ/CREATE_clim_360d/config.card
r4722 r4918 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/amip/COMP/lmdz.card
r4696 r4918 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/amip/config.card
r4722 r4918 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/lmdz.card
r4696 r4918 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card
r4722 r4918 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/IPSLCM6.2/GENERAL/DRIVER/lmdz.driver
r4915 r4918 48 48 ConfType=${lmdz_UserChoices_ConfType} 49 49 50 ##- LMDZ output level, to be set in lmdz.card51 if [ X${lmdz_UserChoices_OutLevel} = X ] ; then52 # OutLevel is not set. Take default value low.53 OutLevel=low54 else55 OutLevel=${lmdz_UserChoices_OutLevel}56 fi57 58 ##-- Output frequency purpose ....59 ##-- Initialisation ....60 ok_mensuel=.FALSE.61 ok_journe=.FALSE.62 ok_hf=.FALSE.63 ok_hf3h=.FALSE.64 ok_hf3hm=.FALSE.65 ok_stn=.FALSE.66 67 68 case ${config_UserChoices_PeriodLength} in69 1Y|1y|1M|1m) ok_mensuel=.TRUE. ;;70 5D|5d|1D|1d) ok_journe=.TRUE. ;;71 esac72 73 for frequency in ${config_ATM_WriteFrequency} ; do74 case ${frequency} in75 1M|1m) ok_mensuel=.TRUE. ;;76 esac77 case ${frequency} in78 5D|5d|1D|1d) ok_journe=.TRUE. ;;79 esac80 case ${frequency} in81 HF|hf) ok_hf=.TRUE. ;;82 esac83 case ${frequency} in84 HF3h|hf3h) ok_hf3h=.TRUE. ;;85 esac86 case ${frequency} in87 HF3hm|hf3hm) ok_hf3hm=.TRUE. ;;88 esac89 case ${frequency} in90 STN|stn) ok_stn=.TRUE. ;;91 esac92 done93 94 95 ## Read LMDZ_COSP_OK in lmdz.card96 if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then97 ## LMDZ_COSP_OK=y, now read all other COSP variables98 ## Read LMDZ_COSP_monthly in lmdz.card99 if [ X${lmdz_UserChoices_LMDZ_COSP_monthly} = Xy ] ; then100 LMDZ_COSP_monthly=.TRUE.101 else102 LMDZ_COSP_monthly=.FALSE.103 fi104 ## Read LMDZ_COSP_daily in lmdz.card105 if [ X${lmdz_UserChoices_LMDZ_COSP_daily} = Xy ] ; then106 LMDZ_COSP_daily=.TRUE.107 else108 LMDZ_COSP_daily=.FALSE.109 fi110 ## Read LMDZ_COSP_hf in lmdz.card111 if [ X${lmdz_UserChoices_LMDZ_COSP_hf} = Xy ] ; then112 LMDZ_COSP_hf=.TRUE.113 else114 LMDZ_COSP_hf=.FALSE.115 fi116 else117 # LMDZ_COSP_OK=n : All cosp output are deactivated118 LMDZ_COSP_monthly=.FALSE.119 LMDZ_COSP_daily=.FALSE.120 LMDZ_COSP_hf=.FALSE.121 fi122 123 ## Read LMDZ_NMC_monthly in lmdz.card124 if [ X${lmdz_UserChoices_LMDZ_NMC_monthly} = Xy ] ; then125 LMDZ_NMC_monthly=.TRUE.126 else127 LMDZ_NMC_monthly=.FALSE.128 fi129 130 ## Read LMDZ_NMC_daily in lmdz.card131 if [ X${lmdz_UserChoices_LMDZ_NMC_daily} = Xy ] ; then132 LMDZ_NMC_daily=.TRUE.133 else134 LMDZ_NMC_daily=.FALSE.135 fi136 137 ## Read LMDZ_NMC_hf in lmdz.card138 if [ X${lmdz_UserChoices_LMDZ_NMC_hf} = Xy ] ; then139 LMDZ_NMC_hf=.TRUE.140 else141 LMDZ_NMC_hf=.FALSE.142 fi143 144 50 IGCM_debug_PopStack "ATM_Initialize" 145 51 } … … 286 192 IGCM_comp_modifyDefFile nonblocker config.def t_coupl ${LMDZ_t_coupl} 287 193 288 ##-- Add special treatement for CARBON CYCLE 289 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 290 ATM_Carbon_Update 291 fi 292 293 294 ##-- Set LMDZ_COSP_daily1979=y in section UserChoices in lmdz.card to activate 295 ## COSP daily output for years 1979 and later (mandatory for historical CMIP5 run). 296 if ([ X"${lmdz_UserChoices_LMDZ_COSP_daily1979}" = X"y" ] && [ ${year} -ge 1979 ]) ; then 297 LMDZ_COSP_daily=.TRUE. 298 fi 299 300 ## Modifiy 301 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled ${ok_mensuel} 302 if [ X${OutLevel} = Xlow ] ; then 303 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 5 304 elif [ X${OutLevel} = Xmedium ] ; then 305 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 6 306 elif [ X${OutLevel} = Xhigh ] ; then 307 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 7 308 fi 309 310 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled ${ok_journe} 311 312 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 313 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 2 314 else 315 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 5 316 fi 317 318 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled ${ok_hf} 319 320 if [ X${OutLevel} = Xlow ] ; then 321 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 5 322 elif [ X${OutLevel} = Xmedium ] ; then 323 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 6 324 elif [ X${OutLevel} = Xhigh ] ; then 325 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 7 326 fi 327 328 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3h_lmdz.xml histhf3h enabled ${ok_hf3h} 329 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3hm_lmdz.xml histhf3hm enabled ${ok_hf3hm} 330 331 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled ${ok_stn} 332 333 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled ${LMDZ_NMC_monthly} 334 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled ${LMDZ_NMC_daily} 335 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled ${LMDZ_NMC_hf} 336 337 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled ${LMDZ_COSP_monthly} 338 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled ${LMDZ_COSP_daily} 339 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 340 341 # Activate the histstrataer output file only for configuration with interactive stratospheric aersols 342 # done by setting the key word LMDZ_strataero=y in lmdz.card 343 if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 344 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .TRUE. 345 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .TRUE. 346 else 347 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .FALSE. 348 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .FALSE. 194 195 196 ## Activate diagnostic output files and set output_level for each file 197 198 # histmth 199 if [ X${lmdz_UserChoices_output_level_histmth} = X ] || [ X${lmdz_UserChoices_output_level_histmth} = XNONE ] ; then 200 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled FALSE 201 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 0 202 else 203 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled TRUE 204 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level ${lmdz_UserChoices_output_level_histmth} 205 fi 206 207 # histday 208 if [ X${lmdz_UserChoices_output_level_histday} = X ] || [ X${lmdz_UserChoices_output_level_histday} = XNONE ] ; then 209 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled FALSE 210 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 0 211 else 212 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled TRUE 213 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level ${lmdz_UserChoices_output_level_histday} 214 fi 215 216 # histhf 217 if [ X${lmdz_UserChoices_output_level_histhf} = X ] || [ X${lmdz_UserChoices_output_level_histhf} = XNONE ] ; then 218 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled FALSE 219 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 0 220 else 221 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled TRUE 222 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level ${lmdz_UserChoices_output_level_histhf} 223 fi 224 225 # histmthNMC 226 if [ X${lmdz_UserChoices_output_level_histmthNMC} = X ] || [ X${lmdz_UserChoices_output_level_histmthNMC} = XNONE ] ; then 227 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled FALSE 228 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level 0 229 else 230 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled TRUE 231 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level ${lmdz_UserChoices_output_level_histmthNMC} 232 fi 233 234 # histdayNMC 235 if [ X${lmdz_UserChoices_output_level_histdayNMC} = X ] || [ X${lmdz_UserChoices_output_level_histdayNMC} = XNONE ] ; then 236 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled FALSE 237 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level 0 238 else 239 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled TRUE 240 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level ${lmdz_UserChoices_output_level_histdayNMC} 241 fi 242 243 # histhfNMC 244 if [ X${lmdz_UserChoices_output_level_histhfNMC} = X ] || [ X${lmdz_UserChoices_output_level_histhfNMC} = XNONE ] ; then 245 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled FALSE 246 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level 0 247 else 248 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled TRUE 249 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level ${lmdz_UserChoices_output_level_histhfNMC} 250 fi 251 252 # histstrataer 253 if [ X${lmdz_UserChoices_output_level_histstrataer} = X ] || [ X${lmdz_UserChoices_output_level_histstrataer} = XNONE ] ; then 254 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled FALSE 255 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level 0 256 else 257 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled TRUE 258 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 259 fi 260 261 # histdaystrataer 262 if [ X${lmdz_UserChoices_output_level_histdaystrataer} = X ] || [ X${lmdz_UserChoices_output_level_histdaystrataer} = XNONE ] ; then 263 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled FALSE 264 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level 0 265 else 266 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled TRUE 267 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 268 fi 269 270 # histstn 271 if [ X${lmdz_UserChoices_output_level_histstn} = X ] || [ X${lmdz_UserChoices_output_level_histstn} = XNONE ] ; then 272 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled FALSE 273 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level 0 274 else 275 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled TRUE 276 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level ${lmdz_UserChoices_output_level_histstn} 277 fi 278 279 280 # histmthCOSP 281 if [ X${lmdz_UserChoices_output_level_histmthCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histmthCOSP} = XNONE ] ; then 282 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled FALSE 283 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 0 284 else 285 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled TRUE 286 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level ${lmdz_UserChoices_output_level_histmthCOSP} 287 fi 288 289 290 # histdayCOSP 291 if [ X${lmdz_UserChoices_output_level_histdayCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histdayCOSP} = XNONE ] ; then 292 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled FALSE 293 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 0 294 else 295 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled TRUE 296 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level ${lmdz_UserChoices_output_level_histdayCOSP} 297 fi 298 299 300 # histhfCOSP 301 if [ X${lmdz_UserChoices_output_level_histhfCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histhfCOSP} = XNONE ] ; then 302 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled FALSE 303 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 0 304 else 305 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled TRUE 306 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level ${lmdz_UserChoices_output_level_histhfCOSP} 349 307 fi 350 308 … … 637 595 IGCM_debug_PushStack "ATM_Finalize" 638 596 639 # Add special treatement for CARBON CYCLE640 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then641 ATM_Carbon_Finalize642 fi643 644 597 echo FINALIZE ATM ! 645 598 … … 647 600 } 648 601 649 650 651 function ATM_Carbon_Update652 {653 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card654 655 IGCM_debug_PushStack "ATM_Carbon_Update"656 657 typeset InitPeriodCo2 InitDateBeginCo2 InitDateEndCo2658 typeset CO2SBG CO2MBG CO2LU CO2_ppm CO2_ppm_prec fCO2_ff659 typeset PathCO2log660 typeset PreviousLinelog LastPeriodDateBegin LastPeriodDateEnd LastDatesPeriod LastPREFIX661 662 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"n" ] ) ; then663 ##--Initialization of fluxes to an undefined value at the first run664 UndefinedValueCo2=-9999665 InitPeriodCo2=0666 InitDateBeginCo2=${UndefinedValueCo2}667 InitYearCo2=$(( ${year} - 1 ))668 InitDateEndCo2=${InitYearCo2}1231669 fCO2_ff=${UndefinedValueCo2}670 CO2SBG=${UndefinedValueCo2}671 CO2LU=${UndefinedValueCo2}672 CO2MBG=${UndefinedValueCo2}673 CO2_ppm_prec=${UndefinedValueCo2}674 # Get the initial value of atmosp. pco2675 CO2_ppm=${lmdz_UserChoices_co2_init}676 677 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log678 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log679 680 # Save CO2 values in ExeCpuLog variable contents 5 fields681 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \682 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \683 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log684 685 # Get the path where the log file co2.log is686 PathCO2log=${SUBMIT_DIR}687 # Get Previous line in co2.log688 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )689 690 else691 692 # NEW parameter in config.card (even for Overule all restarts, you must modify the line after this comment ):693 # !! NEW for Carbone cycle !! Path where to find old co2.log file for restart CO2.694 #SubmitRestartPath=695 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"y" ] ) ; then696 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card ATM SubmitRestartPath697 PathCO2log=${config_ATM_SubmitRestartPath}698 Date_r=$( IGCM_date_ConvertFormatToGregorian ${config_ATM_RestartDate} )699 PreviousLinelog=$( grep ${Date_r} ${PathCO2log}/co2.log )700 701 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log702 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log703 704 # Save Last Line of control in new co2.log file705 InitPeriodCo2=0706 InitDateBeginCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $2}' )707 InitDateEndCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $3}' )708 fCO2_ff=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $6}' )709 CO2SBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $8}' )710 CO2LU=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $9}' )711 CO2MBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $7}' )712 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $5}' )713 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )714 715 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \716 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \717 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log718 else719 # Get restart line in co2.log720 PathCO2log=${SUBMIT_DIR}721 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )722 # Get the value of atmosp. pco2 in co2.log723 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )724 fi725 726 fi727 728 if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then729 # Modify co2_ppm in config.def only for historical run730 # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile731 IGCM_comp_modifyDefFile force config.def co2_ppm ${CO2_ppm}732 fi733 IGCM_debug_PopStack "ATM_Carbon_Update"734 }735 736 737 function ATM_Carbon_Finalize738 {739 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card740 741 IGCM_debug_PushStack "ATM_Carbon_Finalize"742 743 typeset CO2SBG_3V CO2SBG CO2MBG CO2SRF CO2LU CO2_ppm CO2_ppm_prec fCO2_ff744 745 # Fossil fuel emission746 if [ ${lmdz_UserChoices_CARBON_CYCLE} = control ] ; then747 # For Control, no fossil fuel emission :748 fCO2_ff=0749 echo "Fossil Fuel for control run :" ${fCO2_ff}750 else751 # For historical, get the fossile fuel file :752 fCO2_ff=$( gawk "{if (match(\$0,\"${year}\ *${month}\")) {print \$3}}" ${SUBMIT_DIR}/PARAM/CMIP5_gridcar_CO2_emissions_fossil_fuel_Andres_1751-2007_monthly_SC.txt )753 echo "Fossil Fuel for historical run :" ${fCO2_ff}754 fi755 756 # Get the value of ocean carbon flux757 CO2MBG=$( ${SUBMIT_DIR}/COMP/lmdz_analyse_pisces_out.awk ocean.output )758 CO2MBG=$( echo ${CO2MBG} | sed -e "s/ *//" )759 echo "Ocean carbon flux :" ${CO2MBG}760 761 # Get the value of land fluxes762 set +A CO2SBG_3V -- $( ${SUBMIT_DIR}/COMP/lmdz_analyse_stomate_out.awk out_orchidee_0000 )763 CO2SRF=$( echo ${CO2SBG_3V[0]} | sed -e "s/ *//" )764 CO2LU=$( echo ${CO2SBG_3V[1]} | sed -e "s/ *//" )765 CO2SBG=$( echo ${CO2SBG_3V[2]} | sed -e "s/ *//" )766 echo "Land carbon flux (NEP) :" ${CO2SRF}767 echo "LU flux (FLUC) :" ${CO2LU}768 echo "Total Land carbon flux (NBP) :" ${CO2SBG}769 770 # Previous CO2771 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )772 echo "Previous CO2 :" ${CO2_ppm_prec}773 774 # Formula775 CO2_ppm=$( echo "${CO2_ppm_prec} + (${fCO2_ff} + ${CO2MBG} + ${CO2SBG}) / 2.12" | bc -l )776 echo "New CO2 :" ${CO2_ppm}777 778 # Save CO2 values in ExeCpuLog variable contents 5 fields779 echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \780 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \781 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log782 783 IGCM_debug_PopStack "ATM_Carbon_Finalize"784 } -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZ/CREATE_amip/config.card
r4465 r4918 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZ/CREATE_clim_360d/config.card
r4465 r4918 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/amip/COMP/lmdz.card
r4722 r4918 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/amip/config.card
r4463 r4918 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/lmdz.card
r4722 r4918 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card
r4463 r4918 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/LMDZOR_v6.2/GENERAL/DRIVER/lmdz.driver
r4915 r4918 48 48 ConfType=${lmdz_UserChoices_ConfType} 49 49 50 ##- LMDZ output level, to be set in lmdz.card51 if [ X${lmdz_UserChoices_OutLevel} = X ] ; then52 # OutLevel is not set. Take default value low.53 OutLevel=low54 else55 OutLevel=${lmdz_UserChoices_OutLevel}56 fi57 58 ##-- Output frequency purpose ....59 ##-- Initialisation ....60 ok_mensuel=.FALSE.61 ok_journe=.FALSE.62 ok_hf=.FALSE.63 ok_hf3h=.FALSE.64 ok_hf3hm=.FALSE.65 ok_stn=.FALSE.66 67 68 case ${config_UserChoices_PeriodLength} in69 1Y|1y|1M|1m) ok_mensuel=.TRUE. ;;70 5D|5d|1D|1d) ok_journe=.TRUE. ;;71 esac72 73 for frequency in ${config_ATM_WriteFrequency} ; do74 case ${frequency} in75 1M|1m) ok_mensuel=.TRUE. ;;76 esac77 case ${frequency} in78 5D|5d|1D|1d) ok_journe=.TRUE. ;;79 esac80 case ${frequency} in81 HF|hf) ok_hf=.TRUE. ;;82 esac83 case ${frequency} in84 HF3h|hf3h) ok_hf3h=.TRUE. ;;85 esac86 case ${frequency} in87 HF3hm|hf3hm) ok_hf3hm=.TRUE. ;;88 esac89 case ${frequency} in90 STN|stn) ok_stn=.TRUE. ;;91 esac92 done93 94 95 ## Read LMDZ_COSP_OK in lmdz.card96 if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then97 ## LMDZ_COSP_OK=y, now read all other COSP variables98 ## Read LMDZ_COSP_monthly in lmdz.card99 if [ X${lmdz_UserChoices_LMDZ_COSP_monthly} = Xy ] ; then100 LMDZ_COSP_monthly=.TRUE.101 else102 LMDZ_COSP_monthly=.FALSE.103 fi104 ## Read LMDZ_COSP_daily in lmdz.card105 if [ X${lmdz_UserChoices_LMDZ_COSP_daily} = Xy ] ; then106 LMDZ_COSP_daily=.TRUE.107 else108 LMDZ_COSP_daily=.FALSE.109 fi110 ## Read LMDZ_COSP_hf in lmdz.card111 if [ X${lmdz_UserChoices_LMDZ_COSP_hf} = Xy ] ; then112 LMDZ_COSP_hf=.TRUE.113 else114 LMDZ_COSP_hf=.FALSE.115 fi116 else117 # LMDZ_COSP_OK=n : All cosp output are deactivated118 LMDZ_COSP_monthly=.FALSE.119 LMDZ_COSP_daily=.FALSE.120 LMDZ_COSP_hf=.FALSE.121 fi122 123 ## Read LMDZ_NMC_monthly in lmdz.card124 if [ X${lmdz_UserChoices_LMDZ_NMC_monthly} = Xy ] ; then125 LMDZ_NMC_monthly=.TRUE.126 else127 LMDZ_NMC_monthly=.FALSE.128 fi129 130 ## Read LMDZ_NMC_daily in lmdz.card131 if [ X${lmdz_UserChoices_LMDZ_NMC_daily} = Xy ] ; then132 LMDZ_NMC_daily=.TRUE.133 else134 LMDZ_NMC_daily=.FALSE.135 fi136 137 ## Read LMDZ_NMC_hf in lmdz.card138 if [ X${lmdz_UserChoices_LMDZ_NMC_hf} = Xy ] ; then139 LMDZ_NMC_hf=.TRUE.140 else141 LMDZ_NMC_hf=.FALSE.142 fi143 144 50 IGCM_debug_PopStack "ATM_Initialize" 145 51 } … … 286 192 IGCM_comp_modifyDefFile nonblocker config.def t_coupl ${LMDZ_t_coupl} 287 193 288 ##-- Add special treatement for CARBON CYCLE 289 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 290 ATM_Carbon_Update 291 fi 292 293 294 ##-- Set LMDZ_COSP_daily1979=y in section UserChoices in lmdz.card to activate 295 ## COSP daily output for years 1979 and later (mandatory for historical CMIP5 run). 296 if ([ X"${lmdz_UserChoices_LMDZ_COSP_daily1979}" = X"y" ] && [ ${year} -ge 1979 ]) ; then 297 LMDZ_COSP_daily=.TRUE. 298 fi 299 300 ## Modifiy 301 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled ${ok_mensuel} 302 if [ X${OutLevel} = Xlow ] ; then 303 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 5 304 elif [ X${OutLevel} = Xmedium ] ; then 305 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 6 306 elif [ X${OutLevel} = Xhigh ] ; then 307 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 7 308 fi 309 310 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled ${ok_journe} 311 312 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 313 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 2 314 else 315 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 5 316 fi 317 318 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled ${ok_hf} 319 320 if [ X${OutLevel} = Xlow ] ; then 321 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 5 322 elif [ X${OutLevel} = Xmedium ] ; then 323 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 6 324 elif [ X${OutLevel} = Xhigh ] ; then 325 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 7 326 fi 327 328 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3h_lmdz.xml histhf3h enabled ${ok_hf3h} 329 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3hm_lmdz.xml histhf3hm enabled ${ok_hf3hm} 330 331 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled ${ok_stn} 332 333 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled ${LMDZ_NMC_monthly} 334 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled ${LMDZ_NMC_daily} 335 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled ${LMDZ_NMC_hf} 336 337 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled ${LMDZ_COSP_monthly} 338 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled ${LMDZ_COSP_daily} 339 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 340 341 # Activate the histstrataer output file only for configuration with interactive stratospheric aersols 342 # done by setting the key word LMDZ_strataero=y in lmdz.card 343 if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 344 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .TRUE. 345 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .TRUE. 346 else 347 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .FALSE. 348 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .FALSE. 194 195 196 ## Activate diagnostic output files and set output_level for each file 197 198 # histmth 199 if [ X${lmdz_UserChoices_output_level_histmth} = X ] || [ X${lmdz_UserChoices_output_level_histmth} = XNONE ] ; then 200 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled FALSE 201 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 0 202 else 203 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled TRUE 204 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level ${lmdz_UserChoices_output_level_histmth} 205 fi 206 207 # histday 208 if [ X${lmdz_UserChoices_output_level_histday} = X ] || [ X${lmdz_UserChoices_output_level_histday} = XNONE ] ; then 209 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled FALSE 210 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 0 211 else 212 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled TRUE 213 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level ${lmdz_UserChoices_output_level_histday} 214 fi 215 216 # histhf 217 if [ X${lmdz_UserChoices_output_level_histhf} = X ] || [ X${lmdz_UserChoices_output_level_histhf} = XNONE ] ; then 218 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled FALSE 219 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 0 220 else 221 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled TRUE 222 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level ${lmdz_UserChoices_output_level_histhf} 223 fi 224 225 # histmthNMC 226 if [ X${lmdz_UserChoices_output_level_histmthNMC} = X ] || [ X${lmdz_UserChoices_output_level_histmthNMC} = XNONE ] ; then 227 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled FALSE 228 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level 0 229 else 230 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled TRUE 231 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level ${lmdz_UserChoices_output_level_histmthNMC} 232 fi 233 234 # histdayNMC 235 if [ X${lmdz_UserChoices_output_level_histdayNMC} = X ] || [ X${lmdz_UserChoices_output_level_histdayNMC} = XNONE ] ; then 236 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled FALSE 237 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level 0 238 else 239 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled TRUE 240 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level ${lmdz_UserChoices_output_level_histdayNMC} 241 fi 242 243 # histhfNMC 244 if [ X${lmdz_UserChoices_output_level_histhfNMC} = X ] || [ X${lmdz_UserChoices_output_level_histhfNMC} = XNONE ] ; then 245 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled FALSE 246 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level 0 247 else 248 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled TRUE 249 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level ${lmdz_UserChoices_output_level_histhfNMC} 250 fi 251 252 # histstrataer 253 if [ X${lmdz_UserChoices_output_level_histstrataer} = X ] || [ X${lmdz_UserChoices_output_level_histstrataer} = XNONE ] ; then 254 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled FALSE 255 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level 0 256 else 257 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled TRUE 258 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 259 fi 260 261 # histdaystrataer 262 if [ X${lmdz_UserChoices_output_level_histdaystrataer} = X ] || [ X${lmdz_UserChoices_output_level_histdaystrataer} = XNONE ] ; then 263 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled FALSE 264 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level 0 265 else 266 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled TRUE 267 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 268 fi 269 270 # histstn 271 if [ X${lmdz_UserChoices_output_level_histstn} = X ] || [ X${lmdz_UserChoices_output_level_histstn} = XNONE ] ; then 272 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled FALSE 273 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level 0 274 else 275 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled TRUE 276 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level ${lmdz_UserChoices_output_level_histstn} 277 fi 278 279 280 # histmthCOSP 281 if [ X${lmdz_UserChoices_output_level_histmthCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histmthCOSP} = XNONE ] ; then 282 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled FALSE 283 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 0 284 else 285 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled TRUE 286 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level ${lmdz_UserChoices_output_level_histmthCOSP} 287 fi 288 289 290 # histdayCOSP 291 if [ X${lmdz_UserChoices_output_level_histdayCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histdayCOSP} = XNONE ] ; then 292 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled FALSE 293 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 0 294 else 295 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled TRUE 296 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level ${lmdz_UserChoices_output_level_histdayCOSP} 297 fi 298 299 300 # histhfCOSP 301 if [ X${lmdz_UserChoices_output_level_histhfCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histhfCOSP} = XNONE ] ; then 302 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled FALSE 303 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 0 304 else 305 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled TRUE 306 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level ${lmdz_UserChoices_output_level_histhfCOSP} 349 307 fi 350 308 … … 637 595 IGCM_debug_PushStack "ATM_Finalize" 638 596 639 # Add special treatement for CARBON CYCLE640 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then641 ATM_Carbon_Finalize642 fi643 644 597 echo FINALIZE ATM ! 645 598 … … 647 600 } 648 601 649 650 651 function ATM_Carbon_Update652 {653 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card654 655 IGCM_debug_PushStack "ATM_Carbon_Update"656 657 typeset InitPeriodCo2 InitDateBeginCo2 InitDateEndCo2658 typeset CO2SBG CO2MBG CO2LU CO2_ppm CO2_ppm_prec fCO2_ff659 typeset PathCO2log660 typeset PreviousLinelog LastPeriodDateBegin LastPeriodDateEnd LastDatesPeriod LastPREFIX661 662 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"n" ] ) ; then663 ##--Initialization of fluxes to an undefined value at the first run664 UndefinedValueCo2=-9999665 InitPeriodCo2=0666 InitDateBeginCo2=${UndefinedValueCo2}667 InitYearCo2=$(( ${year} - 1 ))668 InitDateEndCo2=${InitYearCo2}1231669 fCO2_ff=${UndefinedValueCo2}670 CO2SBG=${UndefinedValueCo2}671 CO2LU=${UndefinedValueCo2}672 CO2MBG=${UndefinedValueCo2}673 CO2_ppm_prec=${UndefinedValueCo2}674 # Get the initial value of atmosp. pco2675 CO2_ppm=${lmdz_UserChoices_co2_init}676 677 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log678 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log679 680 # Save CO2 values in ExeCpuLog variable contents 5 fields681 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \682 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \683 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log684 685 # Get the path where the log file co2.log is686 PathCO2log=${SUBMIT_DIR}687 # Get Previous line in co2.log688 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )689 690 else691 692 # NEW parameter in config.card (even for Overule all restarts, you must modify the line after this comment ):693 # !! NEW for Carbone cycle !! Path where to find old co2.log file for restart CO2.694 #SubmitRestartPath=695 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"y" ] ) ; then696 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card ATM SubmitRestartPath697 PathCO2log=${config_ATM_SubmitRestartPath}698 Date_r=$( IGCM_date_ConvertFormatToGregorian ${config_ATM_RestartDate} )699 PreviousLinelog=$( grep ${Date_r} ${PathCO2log}/co2.log )700 701 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log702 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log703 704 # Save Last Line of control in new co2.log file705 InitPeriodCo2=0706 InitDateBeginCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $2}' )707 InitDateEndCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $3}' )708 fCO2_ff=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $6}' )709 CO2SBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $8}' )710 CO2LU=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $9}' )711 CO2MBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $7}' )712 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $5}' )713 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )714 715 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \716 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \717 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log718 else719 # Get restart line in co2.log720 PathCO2log=${SUBMIT_DIR}721 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )722 # Get the value of atmosp. pco2 in co2.log723 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )724 fi725 726 fi727 728 if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then729 # Modify co2_ppm in config.def only for historical run730 # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile731 IGCM_comp_modifyDefFile force config.def co2_ppm ${CO2_ppm}732 fi733 IGCM_debug_PopStack "ATM_Carbon_Update"734 }735 736 737 function ATM_Carbon_Finalize738 {739 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card740 741 IGCM_debug_PushStack "ATM_Carbon_Finalize"742 743 typeset CO2SBG_3V CO2SBG CO2MBG CO2SRF CO2LU CO2_ppm CO2_ppm_prec fCO2_ff744 745 # Fossil fuel emission746 if [ ${lmdz_UserChoices_CARBON_CYCLE} = control ] ; then747 # For Control, no fossil fuel emission :748 fCO2_ff=0749 echo "Fossil Fuel for control run :" ${fCO2_ff}750 else751 # For historical, get the fossile fuel file :752 fCO2_ff=$( gawk "{if (match(\$0,\"${year}\ *${month}\")) {print \$3}}" ${SUBMIT_DIR}/PARAM/CMIP5_gridcar_CO2_emissions_fossil_fuel_Andres_1751-2007_monthly_SC.txt )753 echo "Fossil Fuel for historical run :" ${fCO2_ff}754 fi755 756 # Get the value of ocean carbon flux757 CO2MBG=$( ${SUBMIT_DIR}/COMP/lmdz_analyse_pisces_out.awk ocean.output )758 CO2MBG=$( echo ${CO2MBG} | sed -e "s/ *//" )759 echo "Ocean carbon flux :" ${CO2MBG}760 761 # Get the value of land fluxes762 set +A CO2SBG_3V -- $( ${SUBMIT_DIR}/COMP/lmdz_analyse_stomate_out.awk out_orchidee_0000 )763 CO2SRF=$( echo ${CO2SBG_3V[0]} | sed -e "s/ *//" )764 CO2LU=$( echo ${CO2SBG_3V[1]} | sed -e "s/ *//" )765 CO2SBG=$( echo ${CO2SBG_3V[2]} | sed -e "s/ *//" )766 echo "Land carbon flux (NEP) :" ${CO2SRF}767 echo "LU flux (FLUC) :" ${CO2LU}768 echo "Total Land carbon flux (NBP) :" ${CO2SBG}769 770 # Previous CO2771 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )772 echo "Previous CO2 :" ${CO2_ppm_prec}773 774 # Formula775 CO2_ppm=$( echo "${CO2_ppm_prec} + (${fCO2_ff} + ${CO2MBG} + ${CO2SBG}) / 2.12" | bc -l )776 echo "New CO2 :" ${CO2_ppm}777 778 # Save CO2 values in ExeCpuLog variable contents 5 fields779 echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \780 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \781 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log782 783 IGCM_debug_PopStack "ATM_Carbon_Finalize"784 }
Note: See TracChangeset
for help on using the changeset viewer.