Skip to content

Conversation

@chipbarnaby
Copy link
Contributor

@chipbarnaby chipbarnaby commented Apr 20, 2023

Description

Initial implementation of submeters for METER and LOADMETER

  • addition of METER mtrSubmeters and mtrSubmeterMults
  • addition of LOADMETER lmtSubmeters and lmtSubmeterMults
  • checking and sorting code that treats cyclic refs as errors and warns about duplicate refs
  • associated test file that includes deliberate duplicate references to test dup ref detection and warning
  • associated documentation

Also includes incomplete DHWSYSRES accounting fixes.

Copy link
Contributor

@nealkruis nealkruis left a comment

Choose a reason for hiding this comment

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

@chipbarnaby just a couple comments on confusing names and unrelated changes.

return rc;
} // cgSubMeterSetup
//------------------------------------------------------------------------------
RC SUBMETERSEQ::smsq_Setup() // derive submeter sequences
Copy link
Contributor

Choose a reason for hiding this comment

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

smsq? 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

...nm. This is just a prefix. The context should be (mostly) clear based on the class name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

smsq = submeter sequence

Comment on lines +4691 to +4692
wh_qLoss = BtuperkWh * wh_HPWH.hw_qLoss; // tank loss, + = to surround
wh_qEnv = BtuperkWh * wh_HPWH.hw_qEnv;
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't seem relevant to this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not. Work on DHW energy balance became entangled.

return true;
} // DGRAPH::dg_TopologicalSort
//-----------------------------------------------------------------------------
bool DGRAPH::dg_TopologicalSortDFS(
Copy link
Contributor

Choose a reason for hiding this comment

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

DFS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DFS = depth first search

@chipbarnaby chipbarnaby merged commit 27acf15 into main May 1, 2023
@chipbarnaby chipbarnaby deleted the submeters branch May 1, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants