Skip to content
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

Cooling tower plant component refactor #7494

Merged
merged 46 commits into from
Sep 13, 2019
Merged

Conversation

Myoldmopar
Copy link
Member

Pull request overview

Continued plant component refactor, this time the cooling towers

@Myoldmopar Myoldmopar added the Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring label Sep 10, 2019
- [ ] If changes fix a defect, the fix should be demonstrated in plots and descriptions
- [ ] If any defect files are updated to a more recent version, upload new versions here or on DevSupport
- [ ] If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
- [ ] If structural output changes, add to output rules file and add OutputChange label
Copy link
Contributor

@rraustad rraustad Sep 10, 2019

Choose a reason for hiding this comment

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

This is a beautiful thing!

  • If figures are included with documents, include figure name in CMakeLists.txt (e.g., ...\EnergyPlus\doc\input-output-reference\CMakeLists.txt)
  • I'm sure there are other requirements like this ... and other things I don't even know about

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @rraustad, I think we can make better use of this checklist as it gets tidied up. I'll add your figure name entry here as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

And let's not forget those critical PR tags.

  • If table columns are added include OutputChange tag so that PR review process can begin before deadline
  • If IDD is changed include IDDChange tag so that PR review process can begin before deadline

etc...

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, you already have OutputChange label. Also, should reviewer run develop and this branch using the defect file, or the developer? It's seems the developer would have already done that and could easily provide a plot of the results. We don't want to duplicate effort.

Copy link
Member Author

Choose a reason for hiding this comment

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

So the reason a reviewer would also want to do that is twofold: one it gives someone a chance to evaluate the fix with a fresh set of eyes, and also if the develop branch has moved quite a bit since the PR was issued, the combination of this branch and the new develop could have side effects that cause unit tests to fail or IDFs to fail. It's a good idea to have a reviewer pull updated develop branch in and build and run. The reviewer shouldn't have to do any investigating though, just reproducing what was already seen.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ripe for a Wiki page...eventually...nice work.


for (auto & thisTower : SimpleTower) {
thisTower.__AirFlowRateRatio = 0.0;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This variable must need to be initialized at the beginning of the calc or init routines. The other variables didn't have this issue, so I just need to unify the usage.

@Myoldmopar Myoldmopar marked this pull request as ready for review September 12, 2019 20:58
@Myoldmopar
Copy link
Member Author

5ZoneWaterSystems is the failing regression file. The table diffs in that file are due to shifted row order, the values did not change at all, which is why you don't see any mathdiffs.

  • BND diffs expected due to reordered initialization
  • MTD, MDD and RDD diffs expected due to delayed setup output variable calls
  • ERR diffs are due to increased warnings that were being muted accidentally via a shared flag across all towers, now each tower holds their own flag and can individually warn as needed.

This is good to go in.

@Myoldmopar Myoldmopar merged commit 7a06ba2 into develop Sep 13, 2019
@Myoldmopar Myoldmopar deleted the CoolingTowerPlantComponent branch September 13, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants