Skip to content

Commit 344c911

Browse files
committed
tiny weather file cleanup
1 parent e8ab095 commit 344c911

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/EnergyPlus/WeatherManager.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8704,11 +8704,10 @@ namespace Weather {
87048704
while (statFile.good()) {
87058705
auto lineIn = statFile.readLine();
87068706
if (has(lineIn.data, "Monthly Statistics for Dry Bulb temperatures")) {
8707-
for (int i = 1; i <= 7; ++i) {
8708-
lineIn = statFile.readLine();
8707+
for (int i = 0; i < 7; ++i) {
8708+
statFile.readLine();
87098709
}
8710-
auto lineAvgIn = statFile.readLine();
8711-
lineAvg = lineAvgIn.data;
8710+
lineAvg = statFile.readLine().data;
87128711
break;
87138712
}
87148713
}

0 commit comments

Comments
 (0)