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

hector
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 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 ¡
slide-2
SLIDE 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 ¡

slide-3
SLIDE 3
  • 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* ¡

Some ¡development ¡notes ¡

slide-4
SLIDE 4

MODEL ¡CORE ¡

slide-5
SLIDE 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 ¡
  • ther ¡components ¡
  • Receive ¡visitors ¡
slide-6
SLIDE 6
  • 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 ¡

Units ¡

slide-7
SLIDE 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. ¡

slide-8
SLIDE 8

year,run_name,variable,value,units 1751,hectortest,atmosphere.carbonPool,598.701,Pg C 1751,hectortest,atmosphere.ppmCO2,281.08,ppmv CO2 1751,hectortest,atmosphere.anthroEmissions, 0.003,P(yr^-1 g C) 1751,hectortest,forcing.FCO2,0.0206053,W/m2

Stream ¡Output ¡

year value

250 300 350 400 450 500 550 −1 1 2 3

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !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! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

1800 1850 1900 1950 2000 2050 atmosphere.ppmCO2 forcing.FCO2 type

!

Observed

!

Simulated

slide-9
SLIDE 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 ¡