-
Notifications
You must be signed in to change notification settings - Fork 421
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
Streamline CalcMoreNodeInfo #10520
base: develop
Are you sure you want to change the base?
Streamline CalcMoreNodeInfo #10520
Conversation
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
state, thisNode.Temp, thisNode.HumRat, state.dataEnvrn->OutBaroPress, thisMoreNodeInfo.reportingString); | ||
} else { | ||
thisMoreNodeInfo.WetBulbTemp = 0.0; | ||
} |
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.
Aren't these already initialized to 0? Why set this again?
struct MoreNodeData
{
Real64 WetBulbTemp = 0.0;
thisMoreNodeInfo.ReportEnthalpy = Cp * thisNode.Temp; | ||
thisMoreNodeInfo.SpecificHeat = Cp; // always fill since cp already always being calculated anyway | ||
// thisMoreNodeInfo.WetBulbTemp = 0.0; for water nodes, initialized to zero | ||
thisMoreNodeInfo.RelHumidity = 100.0; |
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.
Do we really need to set this for a water node? Could initialize all to 100 if necessary? Or 1-time loop just for water nodes? Maybe not worth it.
@rraustad Agreed. No reason to keep setting either of these to the same constant value every timestep. |
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
4 similar comments
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
@mjwitte @Myoldmopar it has been 28 days since this pull request was last updated. |
@mjwitte it has been 9 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
1 similar comment
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 9 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
7 similar comments
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
@mjwitte it has been 7 days since this pull request was last updated. |
Pull request overview
CalcMoreNodeInfo
to avoid unnecessary checking of various node calc flags if none of the extra node outputs have been requested (wetbulb, RH, dewpoint, and specific heat).NodeInputManager
to be members ofMoreNodeData
.Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.