-
Notifications
You must be signed in to change notification settings - Fork 401
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
Output:Table:Monthly
: SumOrAverageDuringHoursShown
doesn't follow previous variable
#10899
Labels
Defect
Includes code to repair a defect in EnergyPlus
Comments
jmarrec
added a commit
that referenced
this issue
Jan 20, 2025
``` [ RUN ] EnergyPlusFixture.OutputReportTabularMonthly_HandleMultipleDuringHoursShown /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13785: Failure Expected equality of these values: 0.0 Which is: 0 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 1 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13795: Failure Expected equality of these values: 0.0 Which is: 0 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 2 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13805: Failure Expected equality of these values: 1.0 Which is: 1 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 3 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13815: Failure Expected equality of these values: 2.0 Which is: 2 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 4 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13824: Failure Expected equality of these values: 2.0 Which is: 2 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 5 [ FAILED ] EnergyPlusFixture.OutputReportTabularMonthly_HandleMultipleDuringHoursShown (2280 ms) ```
jmarrec
added a commit
that referenced
this issue
Jan 20, 2025
The issue was that an if else ladder inside a loop was incorrectly refactored to a switch case: This was the original thing ```c++ for (int i = ....) { SELECT_CASE_var = XXXX if (SELECT_CASE_var == blabla) { break; // THIS BREAKS THE FOR LOOP } else ... } ``` The refactor: ```c++ for (int i = ....) { switch (XXX) { case blabla: break; // THIS DO NOT BREAK THE FOR LOOP, it just prevents other `case`s to be processed (fallthrough) } ... } ``` 255e7e939fc?w=1#diff-79e778e07bedf79acf027aa76c1235badd89a6f3014b6f0cdadc4ada74402ae3R3817-R3827
20 tasks
jmarrec
added a commit
that referenced
this issue
Jan 21, 2025
``` [ RUN ] EnergyPlusFixture.OutputReportTabularMonthly_HandleMultipleDuringHoursShown /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13785: Failure Expected equality of these values: 0.0 Which is: 0 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 1 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13795: Failure Expected equality of these values: 0.0 Which is: 0 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 2 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13805: Failure Expected equality of these values: 1.0 Which is: 1 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 3 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13815: Failure Expected equality of these values: 2.0 Which is: 2 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 4 /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:13824: Failure Expected equality of these values: 2.0 Which is: 2 ort->MonthlyColumns(colValueWhenConditionNotA).reslt(12) Which is: 5 [ FAILED ] EnergyPlusFixture.OutputReportTabularMonthly_HandleMultipleDuringHoursShown (2280 ms) ```
jmarrec
added a commit
that referenced
this issue
Jan 21, 2025
The issue was that an if else ladder inside a loop was incorrectly refactored to a switch case: This was the original thing ```c++ for (int i = ....) { SELECT_CASE_var = XXXX if (SELECT_CASE_var == blabla) { break; // THIS BREAKS THE FOR LOOP } else ... } ``` The refactor: ```c++ for (int i = ....) { switch (XXX) { case blabla: break; // THIS DO NOT BREAK THE FOR LOOP, it just prevents other `case`s to be processed (fallthrough) } ... } ``` 255e7e939fc?w=1#diff-79e778e07bedf79acf027aa76c1235badd89a6f3014b6f0cdadc4ada74402ae3R3817-R3827
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The attached files includes the following object:
In EnergyPlus 9.6 the object gives the expected output, meaning that the sum of
AIR SYSTEM FAN ELECTRICITY ENERGY {FOR HOURS SHOWN} [kWh]
andAIR SYSTEM FAN ELECTRICITY ENERGY {FOR HOURS SHOWN} [kWh]
in theFANSPLIT
report are equal toAIR SYSTEM FAN ELECTRICITY ENERGY [kWh]
. When updated to a more recent version of EnergyPlus (tried in 23.2, 24.2 and in the latestdevelop
branch), the values forAIR SYSTEM FAN ELECTRICITY ENERGY {FOR HOURS SHOWN} [kWh]
are the same asAIR SYSTEM FAN ELECTRICITY ENERGY [kWh]
and does not seem to follow the aggregation per the previous variableAIR SYSTEM HEATING COIL TOTAL HEATING ENERGY {HOURS NON-ZERO} [HOURS]
.Defect file(s):
defect_files.zip
The text was updated successfully, but these errors were encountered: