hector
play

HECTOR MAGICC is the current way GCAM emissions are - PowerPoint PPT Presentation

HECTOR MAGICC is the current way GCAM emissions are translated into climate changes In-house C ++ version But its old code; difficult to


  1. HECTOR ¡ • MAGICC ¡is ¡the ¡current ¡way ¡GCAM ¡emissions ¡ are ¡translated ¡into ¡climate ¡changes ¡ – In-­‑house ¡C ¡++ ¡version ¡ • But ¡it’s ¡old ¡code; ¡difficult ¡to ¡work ¡with; ¡legal ¡ encumbrances ¡unclear ¡ • Effort ¡underway ¡to ¡develop ¡new ¡model ¡to ¡fill ¡ this ¡role ¡ • No, ¡the ¡name ¡doesn’t ¡mean ¡anything ¡

  2. Philosophy ¡ ¡ v SeparaLon ¡into ¡layers ¡ v Open ¡source ¡ and ¡ community-­‑oriented ¡ v Complexity ¡only ¡where ¡ warranted ¡(K.I.S.S.) ¡ v Well-­‑documented ¡code ¡ v Robust ¡framework ¡for ¡ mulLple ¡future ¡uses ¡ v Minimize ¡dependencies ¡ v …this ¡is ¡hard ¡

  3. Some ¡development ¡notes ¡ • Automated ¡unit ¡tesLng ¡ – Every ¡secLon ¡of ¡code ¡has ¡a ¡ corresponding ¡test ¡unit ¡ – These ¡are ¡run ¡automaLcally ¡and ¡results ¡ tabulated ¡ – Using ¡googletest ¡framework ¡ • Builds ¡on ¡Mac ¡OS ¡X, ¡Linux, ¡Windows* ¡

  4. MODEL ¡CORE ¡

  5. Model ¡components ¡ • Register ¡themselves ¡with ¡core ¡ • But ¡are ¡not ¡dynamically ¡built ¡from ¡input ¡ – ¡(the ¡GCAM ¡approach) ¡ • Can ¡noLfy ¡the ¡core ¡of ¡their ¡dependencies* ¡ • Self-­‑contained, ¡but ¡can ¡communicate ¡with ¡ other ¡components ¡ • Receive ¡visitors ¡

  6. Units ¡ • We ¡use ¡Boost ¡Units ¡for ¡zero-­‑overhead ¡ dimensional ¡analysis ¡ • AutomaLc ¡unit ¡checking ¡and ¡conversion ¡ – E.g., ¡for ¡A ¡= ¡B ¡+ ¡C ¡the ¡preprocessor ¡will ¡ enforce ¡that ¡B ¡and ¡C ¡can ¡be ¡added ¡ together, ¡and ¡that ¡A ¡is ¡proper ¡type ¡to ¡ accept ¡result ¡ – Units ¡automaLcally ¡appear ¡in ¡output ¡ stream ¡ • Has ¡some ¡disadvantages ¡

  7. Output ¡ • As ¡in ¡GCAM, ¡visitors ¡register ¡themselves ¡and ¡ are ¡routed ¡to ¡all ¡model ¡components ¡at ¡each ¡ Lmestep ¡ • Restart ¡visitor ¡ • CSV ¡visitor ¡ – Nicely ¡forma]ed ¡table ¡ • Stream ¡visitor ¡ – This ¡is ¡intended ¡for ¡automated ¡post-­‑processing, ¡ data ¡assimilaLon, ¡etc. ¡

  8. Stream ¡Output ¡ year,run_name,variable,value,units � ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 550 ! ! ! ! ! ! ! ! ! ! ! ! ! 1751,hectortest,atmosphere.carbonPool,598.701,Pg ! ! ! ! ! ! ! ! ! atmosphere.ppmCO2 ! 500 ! ! ! ! C � ! ! ! ! ! ! ! ! ! ! ! ! 450 ! 1751,hectortest,atmosphere.ppmCO2,281.08,ppmv ! ! ! ! ! ! ! ! type ! ! CO2 � ! ! 400 ! ! value ! ! ! ! ! ! ! ! ! ! ! Observed ! ! ! ! ! 1751,hectortest,atmosphere.anthroEmissions, ! ! ! ! ! ! ! ! ! ! ! 350 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 0.003,P(yr^-1 g C) � ! ! ! Simulated ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 300 ! ! ! ! ! ! ! 1751,hectortest,forcing.FCO2,0.0206053,W/m2 � ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 250 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !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! ! ! ! ! ! ! ! ! ! 1800 1850 1900 1950 2000 2050 year

  9. Summary ¡ • Much ¡of ¡infrastructure ¡is ¡in ¡place ¡ • One-­‑line ¡placeholders ¡for ¡science ¡code ¡ – Giving ¡grossly ¡“right” ¡response ¡for ¡carbon ¡cycle, ¡ the ¡800-­‑lb ¡gorilla ¡ • Component ¡infrastructure ¡ready ¡ – Work ¡underway ¡(aber ¡a ¡hiatus) ¡on ¡SLR, ¡aerosols, ¡ etc. ¡ • We ¡would ¡like ¡to ¡hear ¡about ¡uses, ¡concerns, ¡ wish ¡lists ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend