Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/develop' into removeAirT…
Browse files Browse the repository at this point in the history
…ermSDUncontrolled
  • Loading branch information
mjwitte committed Feb 7, 2020
2 parents 649fa6f + ce80ec5 commit ef87136
Show file tree
Hide file tree
Showing 13 changed files with 2,782 additions and 844 deletions.
1,149 changes: 331 additions & 818 deletions src/EnergyPlus/InternalHeatGains.cc

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/EnergyPlus/InternalHeatGains.hh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {
class OutputFiles;

namespace InternalHeatGains {

Expand All @@ -80,7 +81,7 @@ namespace InternalHeatGains {

void ManageInternalHeatGains(Optional_bool_const InitOnly = _); // when true, just calls the get input, if appropriate and returns.

void GetInternalHeatGainsInput();
void GetInternalHeatGainsInput(OutputFiles &outputFiles);

void InitInternalHeatGains();

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/OutputFiles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class custom_arg_formatter : public arg_formatter

static constexpr bool should_be_fixed_output(const Real64 value)
{
return (value >= 0.1 || value <= -0.1) || (value == 0.0);
return (value >= 0.099999999999999995 || value <= -0.099999999999999995) || (value == 0.0) || (value == -0.0);
}

static bool fixed_will_fit(const Real64 value, const int places)
Expand Down
12 changes: 6 additions & 6 deletions src/EnergyPlus/PlantLoopHeatPumpEIR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1057,18 +1057,18 @@ namespace EIRPlantLoopHeatPumps {
"; entered curve name: " + capFtName.get<std::string>());
errorsFound = true;
}
auto &capEIRtName = fields.at("electric_input_to_output_ratio_modifier_function_of_temperature_curve_name");
thisPLHP.powerRatioFuncTempCurveIndex = CurveManager::GetCurveIndex(UtilityRoutines::MakeUPPERCase(capEIRtName));
auto &eirFtName = fields.at("electric_input_to_output_ratio_modifier_function_of_temperature_curve_name");
thisPLHP.powerRatioFuncTempCurveIndex = CurveManager::GetCurveIndex(UtilityRoutines::MakeUPPERCase(eirFtName));
if (thisPLHP.capFuncTempCurveIndex == 0) {
ShowSevereError("Invalid curve name for EIR PLHP (name=" + thisPLHP.name +
"; entered curve name: " + capEIRtName.get<std::string>());
"; entered curve name: " + eirFtName.get<std::string>());
errorsFound = true;
}
auto &capEIRplrName = fields.at("electric_input_to_output_ratio_modifier_function_of_temperature_curve_name");
thisPLHP.powerRatioFuncPLRCurveIndex = CurveManager::GetCurveIndex(UtilityRoutines::MakeUPPERCase(capEIRplrName));
auto &eirFplrName = fields.at("electric_input_to_output_ratio_modifier_function_of_part_load_ratio_curve_name");
thisPLHP.powerRatioFuncPLRCurveIndex = CurveManager::GetCurveIndex(UtilityRoutines::MakeUPPERCase(eirFplrName));
if (thisPLHP.capFuncTempCurveIndex == 0) {
ShowSevereError("Invalid curve name for EIR PLHP (name=" + thisPLHP.name +
"; entered curve name: " + capEIRplrName.get<std::string>());
"; entered curve name: " + eirFplrName.get<std::string>());
errorsFound = true;
}

Expand Down
11 changes: 9 additions & 2 deletions src/EnergyPlus/SimulationManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1166,12 +1166,19 @@ namespace SimulationManager {
DoWeathSim = true;
}

auto const instances = inputProcessor->epJSON.find("PerformancePrecisionTradeoffs");
CurrentModuleObject = "PerformancePrecisionTradeoffs";
auto const instances = inputProcessor->epJSON.find(CurrentModuleObject);
Num = inputProcessor->getNumObjectsFound(CurrentModuleObject);
if (Num > 1) {
ErrorsFound = true;
ShowFatalError("GetProjectData: Only one (\"1\") " + CurrentModuleObject + " object per simulation is allowed.");
}
if (instances != inputProcessor->epJSON.end()) {
auto &instancesValue = instances.value();
for (auto instance = instancesValue.begin(); instance != instancesValue.end(); ++instance) {
auto const &fields = instance.value();
inputProcessor->markObjectAsUsed("PerformancePrecisionTradeoffs", instance.key());
auto const &thisObjectName = instance.key();
inputProcessor->markObjectAsUsed(CurrentModuleObject, thisObjectName);
if (fields.find("use_coil_direct_solutions") != fields.end()) {
DoCoilDirectSolutions =
UtilityRoutines::MakeUPPERCase(fields.at("use_coil_direct_solutions"))=="YES";
Expand Down
1 change: 1 addition & 0 deletions testfiles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ ADD_SIMULATION_TEST(IDF_FILE MultiSpeedACFurnace.idf EPW_FILE USA_IL_Chicago-OHa
ADD_SIMULATION_TEST(IDF_FILE MultiSpeedHP_StagedThermostat.idf EPW_FILE USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE MultiStory.idf EPW_FILE USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE MultispeedHeatPump.idf EPW_FILE USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE MultispeedHeatPump_DirectSolution.idf EPW_FILE USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE MultiSpeedHeatPump_MultiSolvers.idf EPW_FILE USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE Mundt_System_Always_On.idf EPW_FILE USA_FL_Tampa.Intl.AP.722110_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE Mundt_System_On_During_the_Day.idf EPW_FILE USA_FL_Tampa.Intl.AP.722110_TMY3.epw)
Expand Down
Loading

5 comments on commit ef87136

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

removeAirTermSDUncontrolled (mjwitte) - x86_64-Linux-Ubuntu-18.04-gcc-7.4: Build Failed

Messages:\n

  • 446 tests had: RDD diffs.
  • 172 tests had: AUD diffs.
  • 172 tests had: BND diffs.
  • 172 tests had: EIO diffs.
  • 25 tests had: MTD diffs.
  • 15 tests had: ESO small diffs.
  • 17 tests had: Table small diffs.
  • 18 tests had: MTR small diffs.
  • 4 tests had: ESO big diffs.
  • 2 tests had: ERR diffs.
  • 5 tests had: EDD diffs.
  • 1 test had: MDD diffs.
  • 1 test had: Table big diffs.

Failures:\n

integration Test Summary

  • Passed: 678
  • Failed: 1

regression Test Summary

  • Passed: 690
  • Failed: 4

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

removeAirTermSDUncontrolled (mjwitte) - x86_64-Linux-Ubuntu-18.04-cppcheck: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

removeAirTermSDUncontrolled (mjwitte) - x86_64-Linux-Ubuntu-18.04-custom_check: OK (11 of 11 tests passed, 0 test warnings)

Build Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

removeAirTermSDUncontrolled (mjwitte) - x86_64-Linux-Ubuntu-18.04-gcc-7.4-UnitTestsCoverage-Debug: Build Failed

Build Badge Test Badge Coverage Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

removeAirTermSDUncontrolled (mjwitte) - x86_64-Linux-Ubuntu-18.04-gcc-7.4-IntegrationCoverage-Debug: Build Failed

Failures:\n

integration Test Summary

  • Passed: 677
  • Failed: 1
  • Timeout: 1

Build Badge Test Badge Coverage Badge

Please sign in to comment.