Skip to content

Commit

Permalink
Remove some code used for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGlazer committed Jan 23, 2020
1 parent e2afc23 commit f9f3949
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
11 changes: 10 additions & 1 deletion src/EnergyPlus/OutputProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3970,7 +3970,16 @@ namespace OutputProcessor {
// resolve use of EndUseNames that are not in standard list but widely used to define output variables.
if (!Found) {
if (EndUseSubName == "General") {
if (EndUseName == "Photovoltaic" || EndUseName == "PowerConversion" || EndUseName == "HeatingCoils" || EndUseName == "CoolingCoils") {
if (EndUseName == "Photovoltaic" ||
EndUseName == "PowerConversion" ||
EndUseName == "HeatingCoils" ||
EndUseName == "CoolingCoils" ||
EndUseName == "Chillers" ||
EndUseName == "Boilers" ||
EndUseName == "Baseboard" ||
EndUseName == "CarbonEquivalentEmissions" ||
EndUseName == "HeatRecoveryForHeating" ||
EndUseName == "HeatRecoveryForCooling") {
Found = true;
}
}
Expand Down
15 changes: 0 additions & 15 deletions src/EnergyPlus/OutputReportTabular.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7641,9 +7641,6 @@ namespace OutputReportTabular {
// collapse the gatherEndUseBEPS array to the resource groups displayed
for (jEndUse = 1; jEndUse <= NumEndUses; ++jEndUse) {
collapsedEndUse(1, jEndUse) = gatherEndUseBEPS(1, jEndUse); // electricity

Real64 tmpGathCollapseEndUse = gatherEndUseBEPS(1, jEndUse); // temporary

collapsedEndUse(2, jEndUse) = gatherEndUseBEPS(2, jEndUse); // natural gas
collapsedEndUse(3, jEndUse) = gatherEndUseBEPS(6, jEndUse) + gatherEndUseBEPS(8, jEndUse) + gatherEndUseBEPS(9, jEndUse) +
gatherEndUseBEPS(10, jEndUse) + gatherEndUseBEPS(11, jEndUse) + gatherEndUseBEPS(12, jEndUse) +
Expand All @@ -7667,16 +7664,8 @@ namespace OutputReportTabular {
collapsedTotal(6) = gatherTotalsBEPS(7); // water

for (jEndUse = 1; jEndUse <= NumEndUses; ++jEndUse) {

Array1D<Real64> tmpGathEndUseSub; // temporary
tmpGathEndUseSub.allocate(EndUseCategory(jEndUse).NumSubcategories); // temporary


for (kEndUseSub = 1; kEndUseSub <= EndUseCategory(jEndUse).NumSubcategories; ++kEndUseSub) {
collapsedEndUseSub(kEndUseSub, jEndUse, 1) = gatherEndUseSubBEPS(kEndUseSub, jEndUse, 1); // electricity

tmpGathEndUseSub(kEndUseSub) = gatherEndUseSubBEPS(kEndUseSub, jEndUse, 1); // temporary

collapsedEndUseSub(kEndUseSub, jEndUse, 2) = gatherEndUseSubBEPS(kEndUseSub, jEndUse, 2); // natural gas
collapsedEndUseSub(kEndUseSub, jEndUse, 3) =
gatherEndUseSubBEPS(kEndUseSub, jEndUse, 6) + gatherEndUseSubBEPS(kEndUseSub, jEndUse, 8) +
Expand Down Expand Up @@ -8435,13 +8424,9 @@ namespace OutputReportTabular {
if (EndUseCategory(jEndUse).NumSubcategories > 0) {
// set the value to the total for the end use
endUseSubOther(iResource, jEndUse) = collapsedEndUse(iResource, jEndUse);
Real64 tmpEndUseSubOther = collapsedEndUse(iResource, jEndUse); // temporary
Array1D<Real64> tmpEndUseSub; // temporary
tmpEndUseSub.allocate(EndUseCategory(jEndUse).NumSubcategories); // temporary
// subtract off each sub end use category value
for (kEndUseSub = 1; kEndUseSub <= EndUseCategory(jEndUse).NumSubcategories; ++kEndUseSub) {
endUseSubOther(iResource, jEndUse) -= collapsedEndUseSub(kEndUseSub, jEndUse, iResource);
tmpEndUseSub(kEndUseSub) = collapsedEndUseSub(kEndUseSub, jEndUse, iResource); // temporary
}
// if just a small value remains set it to zero
if (std::abs(endUseSubOther(iResource, jEndUse)) > 0.01) {
Expand Down

0 comments on commit f9f3949

Please sign in to comment.