-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize getdata section of temperature_component.cpp #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't follow logic all the way through but seems right 👍 thanks!
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removal of units?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no it has units and I need to add them!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it from a unitval because the math it is used in does not like the unitval, beforehand we had some code that basically extracted the unitval information and reassigned it as a const double which seemed uncessairy.
@@ -180,7 +180,7 @@ void TemperatureComponent::setData( const string& varName, | |||
volscl = data.getUnitval(U_UNITLESS); | |||
} else if(varName == D_QCO2) { | |||
H_ASSERT( data.date == Core::undefinedIndex(), "date not allowed" ); | |||
q2co2 = data.getUnitval(U_UNDEFINED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...because it's unitless I guess :)
@bpbond okay to merge? |
Yes! |
This PR address part of #586 re organizes how the output variables are returned