-
Notifications
You must be signed in to change notification settings - Fork 461
Fix Reheat Coil Multiplier report #11029
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
62b89de
Fix Reheat Coil Multiplier report
ab2c9ff
A little cleanup to get CI to run again
52db320
Merge remote-tracking branch 'origin/develop' into ReheatCoilMult
4e7da1d
Clang-format
rraustad b52cf1b
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into Reh…
rraustad 50ed98c
Merge remote-tracking branch 'origin/develop' into ReheatCoilMult
db3bd03
Merge branch 'ReheatCoilMult' of github.com:NREL/EnergyPlus into Rehe…
1a08088
Merge remote-tracking branch 'origin/develop' into ReheatCoilMult
Myoldmopar 1ee2afe
Point to the regression tool branch for table diff handling
Myoldmopar 4b7afca
Patch in a separate unit test fix
Myoldmopar c008272
Pin regressions back to pypi
Myoldmopar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -364,6 +364,7 @@ void GetSysInput(EnergyPlusData &state) | |
| airTerm.SysName = Alphas(1); | ||
| airTerm.sysType = CurrentModuleObject; | ||
| airTerm.SysType_Num = SysType::SingleDuctVAVReheat; | ||
|
|
||
| airTerm.ReheatComp = Alphas(7); | ||
| if (Util::SameString(airTerm.ReheatComp, "Coil:Heating:Fuel")) { | ||
| airTerm.ReheatComp_Num = HeatingCoilType::Gas; | ||
|
|
@@ -380,12 +381,28 @@ void GetSysInput(EnergyPlusData &state) | |
| ShowContinueError(state, format("Occurs in {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
| } | ||
|
|
||
| airTerm.ReheatName = Alphas(8); | ||
| ValidateComponent(state, airTerm.ReheatComp, airTerm.ReheatName, IsNotOK, airTerm.sysType); | ||
| if (IsNotOK) { | ||
| ShowContinueError(state, format("In {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
| if (airTerm.ReheatComp_Num == HeatingCoilType::Gas || airTerm.ReheatComp_Num == HeatingCoilType::Electric) { | ||
| HeatingCoils::GetCoilIndex(state, airTerm.ReheatName, airTerm.ReheatComp_Index, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SimpleHeating) { | ||
| airTerm.ReheatComp_Index = WaterCoils::GetWaterCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SteamAirHeating) { | ||
| airTerm.ReheatComp_Index = SteamCoils::GetSteamCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } | ||
|
|
||
| if (lAlphaBlanks(2)) { | ||
| airTerm.availSched = Sched::GetScheduleAlwaysOn(state); | ||
| } else if ((airTerm.availSched = Sched::GetSchedule(state, Alphas(2))) == nullptr) { | ||
|
|
@@ -692,12 +709,26 @@ void GetSysInput(EnergyPlusData &state) | |
| ErrorsFound = true; | ||
| } | ||
| airTerm.ReheatName = Alphas(6); | ||
| ValidateComponent(state, airTerm.ReheatComp, airTerm.ReheatName, IsNotOK, airTerm.sysType); | ||
| if (IsNotOK) { | ||
| ShowContinueError(state, format("In {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
| if (airTerm.ReheatComp_Num == HeatingCoilType::Gas || airTerm.ReheatComp_Num == HeatingCoilType::Electric) { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here they are again. |
||
| HeatingCoils::GetCoilIndex(state, airTerm.ReheatName, airTerm.ReheatComp_Index, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SimpleHeating) { | ||
| airTerm.ReheatComp_Index = WaterCoils::GetWaterCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SteamAirHeating) { | ||
| airTerm.ReheatComp_Index = SteamCoils::GetSteamCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } | ||
|
|
||
| if (lAlphaBlanks(2)) { | ||
| airTerm.availSched = Sched::GetScheduleAlwaysOn(state); | ||
| } else if ((airTerm.availSched = Sched::GetSchedule(state, Alphas(2))) == nullptr) { | ||
|
|
@@ -919,12 +950,26 @@ void GetSysInput(EnergyPlusData &state) | |
| ErrorsFound = true; | ||
| } | ||
| airTerm.ReheatName = Alphas(6); | ||
| ValidateComponent(state, airTerm.ReheatComp, airTerm.ReheatName, IsNotOK, airTerm.sysType); | ||
| if (IsNotOK) { | ||
| ShowContinueError(state, format("In {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
| if (airTerm.ReheatComp_Num == HeatingCoilType::Gas || airTerm.ReheatComp_Num == HeatingCoilType::Electric) { | ||
| HeatingCoils::GetCoilIndex(state, airTerm.ReheatName, airTerm.ReheatComp_Index, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SimpleHeating) { | ||
| airTerm.ReheatComp_Index = WaterCoils::GetWaterCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SteamAirHeating) { | ||
| airTerm.ReheatComp_Index = SteamCoils::GetSteamCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(6), Alphas(6)); | ||
| ErrorsFound = true; | ||
| } | ||
| } | ||
|
|
||
| if (lAlphaBlanks(2)) { | ||
| airTerm.availSched = Sched::GetScheduleAlwaysOn(state); | ||
| } else if ((airTerm.availSched = Sched::GetSchedule(state, Alphas(2))) == nullptr) { | ||
|
|
@@ -1654,11 +1699,27 @@ void GetSysInput(EnergyPlusData &state) | |
| ShowContinueError(state, format("Occurs in {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
| } | ||
| ValidateComponent(state, airTerm.ReheatComp, airTerm.ReheatName, IsNotOK, airTerm.sysType); | ||
| if (IsNotOK) { | ||
| ShowContinueError(state, format("In {} = {}", airTerm.sysType, airTerm.SysName)); | ||
| ErrorsFound = true; | ||
|
|
||
| if (airTerm.ReheatComp_Num == HeatingCoilType::Gas || airTerm.ReheatComp_Num == HeatingCoilType::Electric) { | ||
| HeatingCoils::GetCoilIndex(state, airTerm.ReheatName, airTerm.ReheatComp_Index, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SimpleHeating) { | ||
| airTerm.ReheatComp_Index = WaterCoils::GetWaterCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } else if (airTerm.ReheatComp_Num == HeatingCoilType::SteamAirHeating) { | ||
| airTerm.ReheatComp_Index = SteamCoils::GetSteamCoilIndex(state, airTerm.ReheatComp, airTerm.ReheatName, ErrorsFound); | ||
| if (airTerm.ReheatComp_Index == 0) { | ||
| ShowSevereItemNotFound(state, eoh, cAlphaFields(8), Alphas(8)); | ||
| ErrorsFound = true; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| airTerm.fanType = static_cast<HVAC::FanType>(getEnumValue(HVAC::fanTypeNamesUC, Alphas(5))); | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These are the changes. They occur in about four different places.