Skip to content

Commit

Permalink
Reorganize getdata section of temperature_component.cpp (#595)
Browse files Browse the repository at this point in the history
* restructure the temp getdata section

* Simplify qco2 & define units
  • Loading branch information
kdorheim authored Mar 30, 2022
1 parent 15b6318 commit b0baa15
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 157 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions data-raw/units-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hvars <- c(
EMISSIONS_CH4(), PREINDUSTRIAL_CH4(), NATURAL_CH4(), LIFETIME_SOIL(), LIFETIME_STRAT(),
EMISSIONS_SO2(), VOLCANIC_SO2(), CO2_CONSTRAIN(), TGAV_CONSTRAIN(),
CH4_CONSTRAIN(), N2O_CONSTRAIN(), NBP_CONSTRAIN(),
TRACKING_DATE(), RHO_BC(), LO_WARMING_RATIO()
TRACKING_DATE(), RHO_BC(), LO_WARMING_RATIO(), Q_CO2()
)


Expand All @@ -24,7 +24,7 @@ hunits <- c(
"Tg CH4", "ppbv CH4", "Tg CH4", "Years", "Years",
"Gg S", "W/m2", "ppmv CO2", "degC",
"ppbv CH4", "ppbv N2O", "Pg C/yr",
"(unitless)", "W/m2/Tg", "(unitless)"
"(unitless)", "W/m2/Tg", "(unitless)", "W/m2"
)


Expand Down
2 changes: 1 addition & 1 deletion inst/include/temperature_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class TemperatureComponent : public IModelComponent {
double taudif; // interior ocean heat uptake time scale, yr
double tauksl; // sea-land heat exchange time scale, yr
double taukls; // land-sea heat exchange time scale, yr
unitval q2co2; // radiative forcing for atmospheric CO2 doubling (W/m2)
double qco2; // radiative forcing for atmospheric CO2 doubling

std::vector<double> KT0;
std::vector<double> KTA1;
Expand Down
6 changes: 1 addition & 5 deletions man/hector-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit b0baa15

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Differences in Hector outputs

Hello, this is leeyabot! 🤖

The current pull request's outputs do not differ from 3.0.0 (0f2664f).

CML watermark

Please sign in to comment.