Changeset 2321
- Timestamp:
- 08/13/14 18:48:29 (10 years ago)
- Location:
- CONFIG/UNIFORM/v6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver
r2320 r2321 279 279 280 280 ##-- GHG forcing : 281 ## If forcing file exist in run directory, read values for the current year and modify config.def 281 ## If forcing file exist in run directory, read values for the current year 282 ## and set in config.def. If not use the default value set in config.def 282 283 if [ -f SOLARANDVOLCANOES.txt ] ; then 283 284 IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 284 LMDZ_sed config.def solaire ${IPCC_SOLAR} 285 if [ X"${IPCC_SOLAR}" = X ] ; then 286 # The grep returned empty variable, stop execution 287 IGCM_debug_Exit "The file SOLARANDVOLCANOES.txt do not contain the current year." 288 IGCM_debug_Verif_Exit 289 else 290 # Set new variable in config.def file 291 LMDZ_sed config.def solaire ${IPCC_SOLAR} 292 fi 285 293 else 286 294 LMDZ_sed_default config.def solaire 287 295 fi 296 288 297 if [ -f CO2.txt ] ; then 289 298 IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 290 LMDZ_sed config.def co2_ppm ${IPCC_CO2} 299 if [ X"${IPCC_CO2}" = X ] ; then 300 # The grep returned empty variable, stop execution 301 IGCM_debug_Exit "The file CO2.txt do not contain the current year." 302 IGCM_debug_Verif_Exit 303 else 304 # Set new variable in config.def file 305 LMDZ_sed config.def co2_ppm ${IPCC_CO2} 306 fi 291 307 else 292 308 LMDZ_sed_default config.def co2_ppm 293 309 fi 294 295 310 296 311 if [ -f CH4.txt ] ; then 297 312 IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 298 LMDZ_sed config.def CH4_ppb ${IPCC_CH4} 299 else 313 if [ X"${IPCC_CH4}" = X ] ; then 314 # The grep returned empty variable, stop execution 315 IGCM_debug_Exit "The file CH4.txt do not contain the current year." 316 IGCM_debug_Verif_Exit 317 else 318 # Set new variable in config.def file 319 LMDZ_sed config.def CH4_ppb ${IPCC_CH4} 320 fi 321 else 300 322 LMDZ_sed_default config.def CH4_ppb 301 323 fi 324 302 325 if [ -f N2O.txt ] ; then 303 326 IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 304 LMDZ_sed config.def N2O_ppb ${IPCC_N2O} 327 if [ X"${IPCC_N2O}" = X ] ; then 328 # The grep returned empty variable, stop execution 329 IGCM_debug_Exit "The file N2O.txt do not contain the current year." 330 IGCM_debug_Verif_Exit 331 else 332 # Set new variable in config.def file 333 LMDZ_sed config.def N2O_ppb ${IPCC_N2O} 334 fi 305 335 else 306 336 LMDZ_sed_default config.def N2O_ppb 307 337 fi 338 308 339 if [ -f CFC11.txt ] ; then 309 340 IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 310 LMDZ_sed config.def CFC11_ppt ${IPCC_CFC11} 341 if [ X"${IPCC_CFC11}" = X ] ; then 342 # The grep returned empty variable, stop execution 343 IGCM_debug_Exit "The file CFC11.txt do not contain the current year." 344 IGCM_debug_Verif_Exit 345 else 346 # Set new variable in config.def file 347 LMDZ_sed config.def CFC11_ppt ${IPCC_CFC11} 348 fi 311 349 else 312 350 LMDZ_sed_default config.def CFC11_ppt 313 351 fi 352 314 353 if [ -f CFC12.txt ] ; then 315 354 IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 316 LMDZ_sed config.def CFC12_ppt ${IPCC_CFC12} 355 if [ X"${IPCC_CFC12}" = X ] ; then 356 # The grep returned empty variable, stop execution 357 IGCM_debug_Exit "The file CFC12.txt do not contain the current year." 358 IGCM_debug_Verif_Exit 359 else 360 # Set new variable in config.def file 361 LMDZ_sed config.def CFC12_ppt ${IPCC_CFC12} 362 fi 317 363 else 318 364 LMDZ_sed_default config.def CFC12_ppt 319 365 fi 366 320 367 321 368 ## Coupling Time Step -
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/lmdz.driver
r2320 r2321 43 43 RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' | awk "-F-" '{print $1}') 44 44 45 [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x 1945 [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 46 46 47 47 RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) … … 258 258 259 259 ##-- GHG forcing : 260 ## If forcing file exist in run directory, read values for the current year and modify config.def 260 ## If forcing file exist in run directory, read values for the current year 261 ## and set in config.def. If not use the default value set in config.def 261 262 if [ -f SOLARANDVOLCANOES.txt ] ; then 262 263 IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 263 LMDZ_sed config.def solaire ${IPCC_SOLAR} 264 if [ X"${IPCC_SOLAR}" = X ] ; then 265 # The grep returned empty variable, stop execution 266 IGCM_debug_Exit "The file SOLARANDVOLCANOES.txt do not contain the current year." 267 IGCM_debug_Verif_Exit 268 else 269 # Set new variable in config.def file 270 LMDZ_sed config.def solaire ${IPCC_SOLAR} 271 fi 264 272 else 265 273 LMDZ_sed_default config.def solaire 266 274 fi 275 267 276 if [ -f CO2.txt ] ; then 268 277 IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 269 LMDZ_sed config.def co2_ppm ${IPCC_CO2} 278 if [ X"${IPCC_CO2}" = X ] ; then 279 # The grep returned empty variable, stop execution 280 IGCM_debug_Exit "The file CO2.txt do not contain the current year." 281 IGCM_debug_Verif_Exit 282 else 283 # Set new variable in config.def file 284 LMDZ_sed config.def co2_ppm ${IPCC_CO2} 285 fi 270 286 else 271 287 LMDZ_sed_default config.def co2_ppm 272 288 fi 273 274 289 275 290 if [ -f CH4.txt ] ; then 276 291 IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 277 LMDZ_sed config.def CH4_ppb ${IPCC_CH4} 278 else 292 if [ X"${IPCC_CH4}" = X ] ; then 293 # The grep returned empty variable, stop execution 294 IGCM_debug_Exit "The file CH4.txt do not contain the current year." 295 IGCM_debug_Verif_Exit 296 else 297 # Set new variable in config.def file 298 LMDZ_sed config.def CH4_ppb ${IPCC_CH4} 299 fi 300 else 279 301 LMDZ_sed_default config.def CH4_ppb 280 302 fi 303 281 304 if [ -f N2O.txt ] ; then 282 305 IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 283 LMDZ_sed config.def N2O_ppb ${IPCC_N2O} 306 if [ X"${IPCC_N2O}" = X ] ; then 307 # The grep returned empty variable, stop execution 308 IGCM_debug_Exit "The file N2O.txt do not contain the current year." 309 IGCM_debug_Verif_Exit 310 else 311 # Set new variable in config.def file 312 LMDZ_sed config.def N2O_ppb ${IPCC_N2O} 313 fi 284 314 else 285 315 LMDZ_sed_default config.def N2O_ppb 286 316 fi 317 287 318 if [ -f CFC11.txt ] ; then 288 319 IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 289 LMDZ_sed config.def CFC11_ppt ${IPCC_CFC11} 320 if [ X"${IPCC_CFC11}" = X ] ; then 321 # The grep returned empty variable, stop execution 322 IGCM_debug_Exit "The file CFC11.txt do not contain the current year." 323 IGCM_debug_Verif_Exit 324 else 325 # Set new variable in config.def file 326 LMDZ_sed config.def CFC11_ppt ${IPCC_CFC11} 327 fi 290 328 else 291 329 LMDZ_sed_default config.def CFC11_ppt 292 330 fi 331 293 332 if [ -f CFC12.txt ] ; then 294 333 IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 295 LMDZ_sed config.def CFC12_ppt ${IPCC_CFC12} 334 if [ X"${IPCC_CFC12}" = X ] ; then 335 # The grep returned empty variable, stop execution 336 IGCM_debug_Exit "The file CFC12.txt do not contain the current year." 337 IGCM_debug_Verif_Exit 338 else 339 # Set new variable in config.def file 340 LMDZ_sed config.def CFC12_ppt ${IPCC_CFC12} 341 fi 296 342 else 297 343 LMDZ_sed_default config.def CFC12_ppt
Note: See TracChangeset
for help on using the changeset viewer.