Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EnergyPlus/AirflowNetwork/src/Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13310,7 +13310,7 @@ namespace AirflowNetwork {
if (Toperative > (Tcomfort + ComfortBand)) {
if (opening_probability(state, ZoneNum, TimeCloseDuration)) {
OpeningProbStatus = ProbabilityCheck::ForceChange;
; // forced to open
// forced to open
} else {
OpeningProbStatus = ProbabilityCheck::KeepStatus; // Keep previous status
}
Expand Down
3 changes: 1 addition & 2 deletions src/EnergyPlus/DaylightingManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <ObjexxFCL/Array.functions.hh>
#include <ObjexxFCL/Fmath.hh>
#include <ObjexxFCL/Vector3.hh>
// #include <ObjexxFCL/Vector4.hh>
#include <ObjexxFCL/member.functions.hh>
#include <ObjexxFCL/random.hh>
#include <ObjexxFCL/string.functions.hh>
Expand Down Expand Up @@ -9245,7 +9244,7 @@ void ReportIllumMap(EnergyPlusData &state, int const MapNum)
for (int R = RefPt; R <= RefPt + illumMap.Xnum - 1; ++R) {
int IllumOut = nint(illumMap.refPts(R).lumsHr[iLum_Illum]);
std::string String = std::to_string(IllumOut);
;

if (!illumMap.refPts(R).inBounds) {
String = "*" + String;
}
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/OutputReportTabular.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18675,7 +18675,7 @@ bool isNumber(std::string const &s)
char *p;
strtod(s.c_str(), &p);
for (; isspace(*p) != 0; ++p) {
; // handle trailing whitespace
// handle trailing whitespace
}
return *p == 0;
}
Expand Down
5 changes: 0 additions & 5 deletions src/EnergyPlus/SimulationManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
// ObjexxFCL Headers
#include <ObjexxFCL/Array.functions.hh>
#include <ObjexxFCL/Array1D.hh>
#include <ObjexxFCL/environment.hh>
#include <ObjexxFCL/string.functions.hh>

// Third Party Headers
Expand All @@ -67,7 +66,6 @@ extern "C" {
#include <EnergyPlus/CostEstimateManager.hh>
#include <EnergyPlus/CurveManager.hh>
#include <EnergyPlus/Data/EnergyPlusData.hh>
#include <EnergyPlus/DataAirLoop.hh>
#include <EnergyPlus/DataBranchNodeConnections.hh>
#include <EnergyPlus/DataConvergParams.hh>
#include <EnergyPlus/DataErrorTracking.hh>
Expand Down Expand Up @@ -95,7 +93,6 @@ extern "C" {
#include <EnergyPlus/ExternalInterface.hh>
#include <EnergyPlus/FaultsManager.hh>
#include <EnergyPlus/FileSystem.hh>
#include <EnergyPlus/FluidProperties.hh>
#include <EnergyPlus/GeneralRoutines.hh>
#include <EnergyPlus/HVACControllers.hh>
#include <EnergyPlus/HVACManager.hh>
Expand All @@ -109,7 +106,6 @@ extern "C" {
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutAirNodeManager.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/OutputReportPredefined.hh>
#include <EnergyPlus/OutputReportTabular.hh>
#include <EnergyPlus/OutputReports.hh>
#include <EnergyPlus/Plant/PlantManager.hh>
Expand All @@ -118,7 +114,6 @@ extern "C" {
#include <EnergyPlus/PollutionModule.hh>
#include <EnergyPlus/Psychrometrics.hh>
#include <EnergyPlus/RefrigeratedCase.hh>
#include <EnergyPlus/ReportCoilSelection.hh>
#include <EnergyPlus/ResultsFramework.hh>
#include <EnergyPlus/SetPointManager.hh>
#include <EnergyPlus/SimulationManager.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/SolarShading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7121,7 +7121,7 @@ void CalcInteriorSolarDistribution(EnergyPlusData &state)
// Factor for front beam radiation absorbed for equivalent layer window model
Real64 AbWinEQL = state.dataSolarShading->SurfWinAbsSolBeamEQL(1, Lay) * CosInc * SunLitFract *
s_surf->SurfaceWindow(SurfNum).InOutProjSLFracMult[state.dataGlobal->HourOfDay];
;

if (CFS(EQLNum).L(1).LTYPE != LayerType::GLAZE) {
// if the first layer is not glazing (or it is a shade) do not
s_surf->SurfWinA(SurfNum, Lay) = AbWinEQL;
Expand Down
5 changes: 2 additions & 3 deletions src/EnergyPlus/ZoneTempPredictorCorrector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2303,11 +2303,10 @@ void CalculateAdaptiveComfortSetPointSchl(EnergyPlusData &state, Array1D<Real64>
if (GrossApproxAvgDryBulbDesignDay > 10 && GrossApproxAvgDryBulbDesignDay < 30) {
s_ztpc->AdapComfortSetPointSummerDesDay[3] = 0.33 * GrossApproxAvgDryBulbDesignDay + 18.8;
s_ztpc->AdapComfortSetPointSummerDesDay[4] = 0.33 * GrossApproxAvgDryBulbDesignDay + 20.8;
; // What is this?
// What is this?
s_ztpc->AdapComfortSetPointSummerDesDay[5] = 0.33 * GrossApproxAvgDryBulbDesignDay + 21.8;
;

s_ztpc->AdapComfortSetPointSummerDesDay[6] = 0.33 * GrossApproxAvgDryBulbDesignDay + 22.8;
;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tst/EnergyPlus/unit/AirLoopHVACDOAS.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10422,7 +10422,7 @@ TEST_F(EnergyPlusFixture, AirLoopHVACDOAS_TestOACompConnectionError)
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true);
compare_err_stream("", true);

state->init_state(*state);

Expand Down
10 changes: 5 additions & 5 deletions tst/EnergyPlus/unit/AirTerminalSingleDuct.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ TEST_F(EnergyPlusFixture, SingleDuctVAVReheatAirTerminal_MinFlowTurnDownTest)
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true); // clear idf errors
compare_err_stream("", true); // clear idf errors
// setup variables for VAV Reheat
int SysNum = 1;
int ZoneNum = 1;
Expand Down Expand Up @@ -1221,7 +1221,7 @@ TEST_F(EnergyPlusFixture, SingleDuctVAVReheatVSFanAirTerminal_MinFlowTurnDownTes
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true); // clear idf errors
compare_err_stream("", true); // clear idf errors
// setup variables for VAV Reheat VS Fan
int SysNum = 1;
int ZoneNum = 1;
Expand Down Expand Up @@ -1399,7 +1399,7 @@ TEST_F(EnergyPlusFixture, SingleDuctVAVHeatCoolReheatAirTerminal_MinFlowTurnDown
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true); // clear idf errors
compare_err_stream("", true); // clear idf errors
// setup variables for VAV Reheat VS Fan
int SysNum = 1;
int ZoneNum = 1;
Expand Down Expand Up @@ -1588,7 +1588,7 @@ TEST_F(EnergyPlusFixture, SingleDuctVAVReheatVSFan_DamperPositionTest)
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true); // clear idf errors
compare_err_stream("", true); // clear idf errors
// setup variables for VAV Reheat VS Fan
int SysNum = 1;
int ZoneNum = 1;
Expand Down Expand Up @@ -1735,7 +1735,7 @@ TEST_F(EnergyPlusFixture, VAVHeatCoolReheatAirTerminal_ZoneOAVolumeFlowRateTest)
});

ASSERT_TRUE(process_idf(idf_objects));
compare_err_stream_substring("", true); // clear idf errors
compare_err_stream("", true); // clear idf errors
// setup variables for VAV HeatCoolReheat
int SysNum = 1;
int ZoneNum = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_Sim)
state->dataLoopNodes->Node(InletNode).HumRat = 0.0075;
state->dataLoopNodes->Node(InletNode).Enthalpy =
Psychrometrics::PsyHFnTdbW(state->dataLoopNodes->Node(InletNode).Temp, state->dataLoopNodes->Node(InletNode).HumRat);
;
// set zone air node properties
state->dataLoopNodes->Node(ZoneAirNodeNum).Temp = 20.0;
state->dataLoopNodes->Node(ZoneAirNodeNum).HumRat = 0.0075;
Expand Down Expand Up @@ -719,13 +718,11 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_EMSOverrideAirFlow)
state->dataLoopNodes->Node(InletNode).HumRat = 0.0075;
state->dataLoopNodes->Node(InletNode).Enthalpy =
Psychrometrics::PsyHFnTdbW(state->dataLoopNodes->Node(InletNode).Temp, state->dataLoopNodes->Node(InletNode).HumRat);
;
// set zone air node properties
state->dataLoopNodes->Node(ZoneAirNodeNum).Temp = 20.0;
state->dataLoopNodes->Node(ZoneAirNodeNum).HumRat = 0.0075;
state->dataLoopNodes->Node(ZoneAirNodeNum).Enthalpy =
Psychrometrics::PsyHFnTdbW(state->dataLoopNodes->Node(ZoneAirNodeNum).Temp, state->dataLoopNodes->Node(ZoneAirNodeNum).HumRat);
;
state->dataSingleDuct->GetInputFlag = false;
FirstHVACIteration = false;
state->dataLoopNodes->Node(InletNode).MassFlowRateMaxAvail = MassFlowRateMaxAvail;
Expand Down Expand Up @@ -1083,7 +1080,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_SimSensibleOutPutTest)
int const ZoneAirNodeNum = state->dataZoneEquip->ZoneEquipConfig(ZonePtr).ZoneNode;

thisAirTerminal.availSched->currentVal = 1.0; // unit is always available
;
// design maximum air mass flow rate
Real64 MassFlowRateMaxAvail = thisAirTerminal.MaxAirVolFlowRate * state->dataEnvrn->StdRhoAir;
EXPECT_EQ(1.0, thisAirTerminal.MaxAirVolFlowRate);
Expand Down Expand Up @@ -1137,7 +1133,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_SimSensibleOutPutTest)
EXPECT_EQ(thisAirTerminal.sd_airterminalOutlet.AirHumRat, thisAirTerminal.sd_airterminalInlet.AirHumRat);
EXPECT_EQ(thisAirTerminal.sd_airterminalOutlet.AirEnthalpy, thisAirTerminal.sd_airterminalInlet.AirEnthalpy);
EXPECT_EQ(thisAirTerminal.sd_airterminalOutlet.AirMassFlowRate, thisAirTerminal.sd_airterminalInlet.AirMassFlowRate);
;
// test 2: cooling mode test
// set air inlet node properties
state->dataLoopNodes->Node(InletNode).Temp = 15.0;
Expand Down Expand Up @@ -1167,7 +1162,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_SimSensibleOutPutTest)
EXPECT_EQ(0.0, thisAirTerminal.sd_airterminalInlet.AirMassFlowRate); // inlet mass flow rate is zero
EXPECT_EQ(0.0, thisAirTerminal.sd_airterminalOutlet.AirMassFlowRate); // outlet mass flow rate is zero
EXPECT_EQ(0.0, SysOutputProvided); // delivered sensible cooling is zero
;
// reset mass flow rate to the maximum available
state->dataLoopNodes->Node(InletNode).MassFlowRateMaxAvail = MassFlowRateMaxAvail;
EXPECT_EQ(1.0, MassFlowRateMaxAvail);
Expand Down Expand Up @@ -1279,7 +1273,6 @@ TEST_F(EnergyPlusFixture, AirTerminalSingleDuctCVNoReheat_DownstreamLeakTest)
int const ZoneAirNodeNum = state->dataZoneEquip->ZoneEquipConfig(ZonePtr).ZoneNode;

thisAirTerminal.availSched->currentVal = 1.0; // unit is always available
;
// design maximum air mass flow rate
Real64 MassFlowRateMaxAvail = thisAirTerminal.MaxAirVolFlowRate * state->dataEnvrn->StdRhoAir;
EXPECT_EQ(1.0, thisAirTerminal.MaxAirVolFlowRate);
Expand Down
2 changes: 0 additions & 2 deletions tst/EnergyPlus/unit/AirflowNetworkConditions.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,7 @@ TEST_F(EnergyPlusFixture, AirflowNetworkSimulationControl_SetSolver)

SurfaceGeometry::AllocateSurfaceWindows(*state, 2);
state->dataSurface->Surface(1).OriginalClass = DataSurfaces::SurfaceClass::Window;
;
state->dataSurface->Surface(2).OriginalClass = DataSurfaces::SurfaceClass::Window;
;
state->dataGlobal->NumOfZones = 1;

state->dataHeatBal->TotPeople = 1; // Total number of people statements
Expand Down
1 change: 0 additions & 1 deletion tst/EnergyPlus/unit/DaylightingManager.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ TEST_F(EnergyPlusFixture, DaylightingManager_GetInputOutputIlluminanceMap_Test)
dl->enclDaylight.allocate(state->dataViewFactor->NumOfSolarEnclosures);

GetInputIlluminanceMap(*state, foundErrors);
// compare_err_stream(""); // expecting errors because zone is not really defined

EXPECT_EQ(1, (int)dl->illumMaps.size());

Expand Down
5 changes: 0 additions & 5 deletions tst/EnergyPlus/unit/EconomicTariff.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ TEST_F(EnergyPlusFixture, EconomicTariff_Gas_CCF_Test)
state->dataOutputProcessor->meterMap.insert_or_assign("NATURALGAS:FACILITY", state->dataOutputProcessor->meters.size() - 1);

UpdateUtilityBills(*state);
;

// tariff
EXPECT_EQ(1, state->dataEconTariff->numTariff);
Expand Down Expand Up @@ -386,7 +385,6 @@ TEST_F(EnergyPlusFixture, EconomicTariff_Electric_CCF_Test)
state->dataOutputProcessor->meterMap.insert_or_assign("ELECTRICITY:FACILITY", state->dataOutputProcessor->meters.size() - 1);

UpdateUtilityBills(*state);
;

// tariff
EXPECT_EQ(1, state->dataEconTariff->numTariff);
Expand Down Expand Up @@ -603,7 +601,6 @@ TEST_F(EnergyPlusFixture, EconomicTariff_GatherForEconomics)

// This will only do the get input routines
EconomicTariff::UpdateUtilityBills(*state);
;

// tariff
EXPECT_EQ(1, state->dataEconTariff->numTariff);
Expand Down Expand Up @@ -653,7 +650,6 @@ TEST_F(EnergyPlusFixture, EconomicTariff_GatherForEconomics)
// This Should now call GatherForEconomics
state->dataGlobal->DoOutputReporting = true;
EconomicTariff::UpdateUtilityBills(*state);
;
EXPECT_ENUM_EQ(Season::Winter, state->dataEconTariff->tariff(1).seasonForMonth(5));
EXPECT_ENUM_EQ(Season::Invalid, state->dataEconTariff->tariff(1).seasonForMonth(6));

Expand All @@ -679,7 +675,6 @@ TEST_F(EnergyPlusFixture, EconomicTariff_GatherForEconomics)

// This Should now call GatherForEconomics
EconomicTariff::UpdateUtilityBills(*state);
;
EXPECT_ENUM_EQ(Season::Winter, state->dataEconTariff->tariff(1).seasonForMonth(5));
EXPECT_ENUM_EQ(Season::Summer, state->dataEconTariff->tariff(1).seasonForMonth(6));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ TEST_F(EnergyPlusFixture, FiniteDiffGroundTempModelTest)
tdwd.relativeHumidity = relHum_const;
tdwd.windSpeed = windSpeed_const;
tdwd.horizontalRadiation = solar_amp * std::sin(theta - omega) + (solar_min + solar_amp);
;
tdwd.airDensity = 1.2;
}

Expand Down
15 changes: 15 additions & 0 deletions tst/EnergyPlus/unit/Fixtures/EnergyPlusFixture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ bool EnergyPlusFixture::compare_eio_stream(std::string const &expected_string, b

bool EnergyPlusFixture::compare_eio_stream_substring(std::string const &search_string, bool reset_stream)
{
if (search_string.empty()) {
ADD_FAILURE() << "compare_eio_stream_substring cannot search for an empty string; use compare_eso_stream or has_eso_output instead.";
return false;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like this though! Now we can't be lazy.


auto const stream_str = state->files.eio.get_output();
bool const found = stream_str.find(search_string) != std::string::npos;
EXPECT_TRUE(found);
Expand Down Expand Up @@ -225,6 +230,11 @@ bool EnergyPlusFixture::compare_err_stream(std::string const &expected_string, b

bool EnergyPlusFixture::compare_err_stream_substring(std::string const &search_string, bool reset_stream, bool call_expect)
{
if (search_string.empty()) {
ADD_FAILURE() << "compare_err_stream_substring cannot search for an empty string; use compare_err_stream or has_err_output instead.";
return false;
}

auto const stream_str = this->err_stream->str();
bool const found = stream_str.find(search_string) != std::string::npos;
if (call_expect) {
Expand All @@ -248,6 +258,11 @@ bool EnergyPlusFixture::compare_cout_stream(std::string const &expected_string,
}
bool EnergyPlusFixture::compare_cout_stream_substring(std::string const &search_string, bool reset_stream)
{
if (search_string.empty()) {
ADD_FAILURE() << "compare_cout_stream_substring cannot search for an empty string; use compare_cout_stream or has_cout_output instead.";
return false;
}

auto const stream_str = this->m_cout_buffer->str();
bool const found = stream_str.find(search_string) != std::string::npos;
if (reset_stream) {
Expand Down
6 changes: 3 additions & 3 deletions tst/EnergyPlus/unit/Fixtures/EnergyPlusFixture.hh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected:
// It is easier to test successive functions if the EIO stream is 'empty' before the next call.
// This calls EXPECT_* within the function as well as returns a boolean so you can call [ASSERT/EXPECT]_[TRUE/FALSE] depending
// if it makes sense for the unit test to continue after returning from function.
// Will return true if string matches the stream and false if it does not
// Will return true if a non-empty string is found in the stream and false if it is not
bool compare_eio_stream_substring(std::string const &expected_string, bool reset_stream = true);

// Compare an expected string against the MTR stream. The default is to reset the MTR stream after every call.
Expand All @@ -196,7 +196,7 @@ protected:
// It is easier to test successive functions if the ERR stream is 'empty' before the next call.
// This calls EXPECT_* within the function as well as returns a boolean so you can call [ASSERT/EXPECT]_[TRUE/FALSE] depending
// if it makes sense for the unit test to continue after returning from function.
// Will return true if string is found in the stream and false if it is not
// Will return true if a non-empty string is found in the stream and false if it is not
bool compare_err_stream_substring(std::string const &search_string, bool reset_stream = true, bool call_expect = true);

// Compare an expected string against the COUT stream. The default is to reset the COUT stream after every call.
Expand All @@ -210,7 +210,7 @@ protected:
// It is easier to test successive functions if the COUT stream is 'empty' before the next call.
// This returns a boolean so you can call [ASSERT/EXPECT]_[TRUE/FALSE] depending
// if it makes sense for the unit test to continue after returning from function.
// Will return true if string is found in the stream and false if it is not
// Will return true if a non-empty string is found in the stream and false if it is not
bool compare_cout_stream_substring(std::string const &search_string, bool reset_stream = true);

// Compare an expected string against the CERR stream. The default is to reset the CERR stream after every call.
Expand Down
5 changes: 2 additions & 3 deletions tst/EnergyPlus/unit/HVACDXSystem.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,8 @@ TEST_F(EnergyPlusFixture, VariableSpeedCoils_DOASDXCoilTest)
thisSys->CoolCoilOutletNodeNum = 2;
thisSys->CoolCtrlNode = 2;
bool errorsFound = thisSys->checkNodeSetPoint(*state, AirLoopNum, thisSys->CoolCtrlNode, CoolingCoil, OAUCoilOutTemp);
EXPECT_FALSE(errorsFound); // no errors when TempSetPoint is set on the control node
expected_error = "";
EXPECT_TRUE(compare_err_stream_substring(expected_error, true)); // no warnings when control node = cooling coil outlet node
EXPECT_FALSE(errorsFound); // no errors when TempSetPoint is set on the control node
EXPECT_TRUE(compare_err_stream("", true)); // no warnings when control node = cooling coil outlet node

state->dataLoopNodes->Node(2).TempSetPoint = -999.0; // reset to invalid setpoint to test error case
errorsFound = thisSys->checkNodeSetPoint(*state, AirLoopNum, thisSys->CoolCtrlNode, CoolingCoil, OAUCoilOutTemp);
Expand Down
4 changes: 1 addition & 3 deletions tst/EnergyPlus/unit/OutdoorAirUnit.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ TEST_F(EnergyPlusFixture, OutdoorAirUnit_AutoSize)
int CurZoneNum(1); // index to zone
Real64 SysOutputProvided(0.0); // function returns sensible capacity [W]
Real64 LatOutputProvided(0.0); // function returns latent capacity [W]
int ZoneInletNode(0);

std::string const idf_objects = delimited_string({
"Output:Diagnostics, DisplayExtraWarnings;",
Expand Down Expand Up @@ -328,7 +327,7 @@ TEST_F(EnergyPlusFixture, OutdoorAirUnit_AutoSize)
state->dataSize->FinalZoneSizing(state->dataSize->CurZoneEqNum).CoolDesTemp = 13.1; // 55.58 F
state->dataSize->FinalZoneSizing(state->dataSize->CurZoneEqNum).CoolDesHumRat = 0.009297628698818194; // humrat at 12.77777 C db / 12.6 C wb

ZoneInletNode = OutdoorAirUnit::GetOutdoorAirUnitZoneInletNode(*state, OAUnitNum);
OutdoorAirUnit::GetOutdoorAirUnitZoneInletNode(*state, OAUnitNum);

// schedule values will get reset to 0 if initialized before GetInput
Sched::GetSchedule(*state, "AVAILSCHED")->currentVal = 1.0; // enable the VRF condenser
Expand Down Expand Up @@ -361,7 +360,6 @@ TEST_F(EnergyPlusFixture, OutdoorAirUnit_AutoSize)
EXPECT_DOUBLE_EQ(SAFanPower, 75.0);
EXPECT_DOUBLE_EQ(EAFanPower, 75.0);
EXPECT_DOUBLE_EQ(SAFanPower + EAFanPower, state->dataOutdoorAirUnit->OutAirUnit(OAUnitNum).ElecFanRate);
compare_err_stream_substring("", true);
EXPECT_TRUE(compare_err_stream("", true));

// #6173
Expand Down
2 changes: 0 additions & 2 deletions tst/EnergyPlus/unit/Psychrometrics.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ TEST_F(EnergyPlusFixture, Psychrometrics_CpAirAverageValue_Test)
Real64 CpAirOut = PsyCpAirFnW(W2); // cp of air at state 2
Real64 CpAir_result = PsyCpAirFnW(0.5 * (W1 + W2)); // cp of air at average humidity ratio
Real64 CpAir_average = (CpAirIn + CpAirOut) / 2;
;
// check heating results
EXPECT_DOUBLE_EQ(CpAirIn, 1.00484e3 + W1 * 1.85895e3);
EXPECT_DOUBLE_EQ(CpAirOut, 1.00484e3 + W2 * 1.85895e3);
Expand All @@ -430,7 +429,6 @@ TEST_F(EnergyPlusFixture, Psychrometrics_CpAirAverageValue_Test)
CpAirOut = PsyCpAirFnW(W2); // cp of air at state 2
CpAir_result = PsyCpAirFnW(0.5 * (W1 + W2)); // cp of air at average humidity ratio
CpAir_average = (CpAirIn + CpAirOut) / 2;
;
// check cooling results
EXPECT_DOUBLE_EQ(CpAirIn, 1.00484e3 + W1 * 1.85895e3);
EXPECT_DOUBLE_EQ(CpAirOut, 1.00484e3 + W2 * 1.85895e3);
Expand Down
Loading
Loading