Skip to content

Commit

Permalink
ClangFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
jmythms committed Nov 29, 2021
1 parent 0eba01b commit 8c53473
Show file tree
Hide file tree
Showing 21 changed files with 469 additions and 498 deletions.
75 changes: 33 additions & 42 deletions src/EnergyPlus/DXCoils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ using namespace ScheduleManager;
// Functions

void SimDXCoil(EnergyPlusData &state,
std::string_view CompName, // name of the fan coil unit
std::string_view CompName, // name of the fan coil unit
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // True when first HVAC iteration
bool const FirstHVACIteration, // True when first HVAC iteration
int &CompIndex,
int const FanOpMode, // allows parent object to control fan mode
Optional<Real64 const> PartLoadRatio, // part load ratio (for single speed cycling unit)
Expand Down Expand Up @@ -233,16 +233,8 @@ void SimDXCoil(EnergyPlusData &state,

} else if (SELECT_CASE_var == CoilVRF_Cooling) {

CalcVRFCoolingCoil(state,
DXCoilNum,
CompressorOperation::On,
FirstHVACIteration,
PartLoadRatio,
FanOpMode,
CompCycRatio,
_,
AirFlowRatio,
MaxCap);
CalcVRFCoolingCoil(
state, DXCoilNum, CompressorOperation::On, FirstHVACIteration, PartLoadRatio, FanOpMode, CompCycRatio, _, AirFlowRatio, MaxCap);

} else if (SELECT_CASE_var == CoilVRF_Heating) {

Expand Down Expand Up @@ -276,10 +268,10 @@ void SimDXCoilMultiSpeed(EnergyPlusData &state,
Real64 const SpeedRatio, // = (CompressorSpeed - CompressorSpeedMin) /
Real64 const CycRatio, // cycling part load ratio for variable speed
int &CompIndex,
Optional_int_const SpeedNum, // Speed number for multispeed cooling coil onlyn
Optional_int_const FanOpMode, // Fan operation mode
CompressorOperation CompOp, // Compressor on/off; 1=on, 0=off
Optional_int_const SingleMode // Single mode operation Yes/No; 1=Yes, 0=No
Optional_int_const SpeedNum, // Speed number for multispeed cooling coil onlyn
Optional_int_const FanOpMode, // Fan operation mode
CompressorOperation CompOp, // Compressor on/off; 1=on, 0=off
Optional_int_const SingleMode // Single mode operation Yes/No; 1=Yes, 0=No
)
{

Expand Down Expand Up @@ -391,11 +383,11 @@ void SimDXCoilMultiSpeed(EnergyPlusData &state,
}

void SimDXCoilMultiMode(EnergyPlusData &state,
std::string_view CompName, // name of the fan coil unit
std::string_view CompName, // name of the fan coil unit
[[maybe_unused]] CompressorOperation const CompOp, // compressor operation; 1=on, 0=off !unused1208
bool const FirstHVACIteration, // true if first hvac iteration
Real64 const PartLoadRatio, // part load ratio
int const DehumidMode, // dehumidification mode (0=normal, 1=enhanced)
bool const FirstHVACIteration, // true if first hvac iteration
Real64 const PartLoadRatio, // part load ratio
int const DehumidMode, // dehumidification mode (0=normal, 1=enhanced)
int &CompIndex,
int const FanOpMode // allows parent object to control fan mode
)
Expand Down Expand Up @@ -536,8 +528,7 @@ void SimDXCoilMultiMode(EnergyPlusData &state,
if ((state.dataDXCoils->DXCoil(DXCoilNum).NumCapacityStages == 1) || (PartLoadRatio <= 0.0)) {
// Run stage 1 at its part load
PerfMode = DehumidMode * 2 + 1;
CalcDoe2DXCoil(
state, DXCoilNum, CompressorOperation::On, FirstHVACIteration, PartLoadRatio, FanOpMode, PerfMode);
CalcDoe2DXCoil(state, DXCoilNum, CompressorOperation::On, FirstHVACIteration, PartLoadRatio, FanOpMode, PerfMode);
S1PLR = PartLoadRatio;
S2PLR = 0.0;
} else {
Expand Down Expand Up @@ -9544,14 +9535,14 @@ void CalcHPWHDXCoil(EnergyPlusData &state,
}

void CalcDoe2DXCoil(EnergyPlusData &state,
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan operation
Optional_int_const PerfMode, // Performance mode for MultiMode DX coil; Always 1 for other coil types
Optional<Real64 const> OnOffAirFlowRatio, // ratio of compressor on airflow to compressor off airflow
Optional<Real64 const> CoolingHeatingPLR // used for cycling fan RH control
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan operation
Optional_int_const PerfMode, // Performance mode for MultiMode DX coil; Always 1 for other coil types
Optional<Real64 const> OnOffAirFlowRatio, // ratio of compressor on airflow to compressor off airflow
Optional<Real64 const> CoolingHeatingPLR // used for cycling fan RH control
)
{

Expand Down Expand Up @@ -10631,12 +10622,12 @@ void CalcDoe2DXCoil(EnergyPlusData &state,
}

void CalcVRFCoolingCoil(EnergyPlusData &state,
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan operation
Real64 const CompCycRatio, // cycling ratio of VRF condenser
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan operation
Real64 const CompCycRatio, // cycling ratio of VRF condenser
Optional_int_const PerfMode, // Performance mode for MultiMode DX coil; Always 1 for other coil types
Optional<Real64 const> OnOffAirFlowRatio, // ratio of compressor on airflow to compressor off airflow
Optional<Real64 const> MaxCoolCap // maximum capacity of DX coil
Expand Down Expand Up @@ -13082,7 +13073,7 @@ void CalcMultiSpeedDXCoilCooling(EnergyPlusData &state,
int const SpeedNum, // Speed number
int const FanOpMode, // Sets fan control to CycFanCycCoil or ContFanCycCoil
CompressorOperation const CompOp, // Compressor on/off; 1=on, 0=off
int const SingleMode // Single mode operation Yes/No; 1=Yes, 0=No
int const SingleMode // Single mode operation Yes/No; 1=Yes, 0=No
)
{

Expand Down Expand Up @@ -17244,9 +17235,9 @@ Real64 CalcSecondaryDXCoilsSHR(EnergyPlusData &state,
}

void CalcVRFCoolingCoil_FluidTCtrl(EnergyPlusData &state,
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
int const DXCoilNum, // the number of the DX coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
bool const FirstHVACIteration, // true if this is the first iteration of HVAC
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan operation
Real64 const CompCycRatio, // cycling ratio of VRF condenser
Expand Down Expand Up @@ -17712,8 +17703,8 @@ void CalcVRFCoolingCoil_FluidTCtrl(EnergyPlusData &state,
}

void CalcVRFHeatingCoil_FluidTCtrl(EnergyPlusData &state,
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
int const DXCoilNum, // the number of the DX heating coil to be simulated
CompressorOperation const CompOp, // compressor operation; 1=on, 0=off
int const DXCoilNum, // the number of the DX heating coil to be simulated
Real64 const PartLoadRatio, // sensible cooling load / full load sensible cooling capacity
int const FanOpMode, // Allows parent object to control fan mode
Optional<Real64 const> OnOffAirFlowRatio, // ratio of compressor on airflow to compressor off airflow
Expand Down
Loading

5 comments on commit 8c53473

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

enumCompOp (jmythms) - Win64-Windows-10-VisualStudio-16: OK (2431 of 2431 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

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

enumCompOp (jmythms) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: OK (3226 of 3226 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

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

enumCompOp (jmythms) - x86_64-MacOS-10.15-clang-11.0.0: OK (3185 of 3185 tests passed, 0 test warnings)

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.

enumCompOp (jmythms) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1718 of 1718 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

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

enumCompOp (jmythms) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (737 of 737 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.