Skip to content

Commit

Permalink
Merge pull request #7882 from NREL/fix_ite_unittest
Browse files Browse the repository at this point in the history
Fix InternalHeatGains_ElectricEquipITE_ApproachTemperatures unit test and fixture file closing
  • Loading branch information
Myoldmopar authored Mar 26, 2020
2 parents 5eeaa0e + 39570c1 commit 245dec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/EnergyPlus/InternalHeatGains.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3941,7 +3941,7 @@ namespace InternalHeatGains {
}

if (ZoneITEq(Loop).FlowControlWithApproachTemps) {
Real64 TAirInSizing;
Real64 TAirInSizing = 0.0;
// Set the TAirInSizing to the maximun setpoint value to do sizing based on the maximum fan and cpu power of the ite object
SetPointManager::GetSetPointManagerInputData(ErrorsFound);
for (int SetPtMgrNum = 1; SetPtMgrNum <= SetPointManager::NumSZClSetPtMgrs; ++SetPtMgrNum) {
Expand Down
5 changes: 3 additions & 2 deletions tst/EnergyPlus/unit/Fixtures/EnergyPlusFixture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ void EnergyPlusFixture::SetUp()
void EnergyPlusFixture::TearDown()
{

clearAllStates();

{
IOFlags flags;
flags.DISPOSE("DELETE");
Expand All @@ -132,6 +130,9 @@ void EnergyPlusFixture::TearDown()
ObjexxFCL::gio::close(DataGlobals::OutputDElightIn, flags);
ObjexxFCL::gio::close(DataGlobals::OutputFileShadingFrac, flags);
}

clearAllStates();

}

std::string EnergyPlusFixture::delimited_string(std::vector<std::string> const &strings, std::string const &delimiter)
Expand Down

0 comments on commit 245dec1

Please sign in to comment.