From d7e4539d5cfed69d1f854d0814ff3d340210a638 Mon Sep 17 00:00:00 2001 From: "Michael J. Witte" Date: Thu, 5 Sep 2024 12:33:09 -0500 Subject: [PATCH] Space IV.5 - Attempt to debug linux unit test failure --- tst/EnergyPlus/unit/SizingManager.unit.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tst/EnergyPlus/unit/SizingManager.unit.cc b/tst/EnergyPlus/unit/SizingManager.unit.cc index a38b05fbe10..f54992def5c 100644 --- a/tst/EnergyPlus/unit/SizingManager.unit.cc +++ b/tst/EnergyPlus/unit/SizingManager.unit.cc @@ -4223,6 +4223,17 @@ TEST_F(EnergyPlusFixture, SizingManager_ZoneSizing_Coincident_NonAir_10x_Latent_ ASSERT_TRUE(process_idf(idf_objects)); SimulationManager::ManageSimulation(*state); + int space1Num = 1; + int curSimDay = 1; + auto &calSpSiz = state->dataSize->CalcSpaceSizing(curSimDay, space1Num); + + EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(57), 7500.00, 0.01); + EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(58), 8333.33, 0.01); + EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(59), 9166.66, 0.01); + EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(60), 10000.00, 0.01); + EXPECT_NEAR(calSpSiz.LatentCoolLoadSeq(61), 10000.00, 0.01); + EXPECT_TRUE(calSpSiz.LatentCoolLoadSeq(60) > calSpSiz.LatentCoolLoadSeq(59)); + EXPECT_TRUE(calSpSiz.LatentCoolLoadSeq(61) == calSpSiz.LatentCoolLoadSeq(60)); EXPECT_EQ("18989.14", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesLd, "SPACE 1")); EXPECT_EQ("0.527", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtCalcDesAirFlow, "SPACE 1")); EXPECT_EQ("0.527", OutputReportPredefined::RetrievePreDefTableEntry(*state, state->dataOutRptPredefined->pdchSpHtUserDesAirFlow, "SPACE 1"));