Skip to content

Commit

Permalink
Multiple Airloops - Fix SetupZoneInternalGain for Lights
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwitte committed Feb 21, 2017
1 parent c9b530e commit 7ebff60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/EnergyPlus/HeatBalanceInternalHeatGains.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ SetupZoneInternalGain(
Optional< Real64 > ReturnAirLatentGainRate,
Optional< Real64 > CarbonDioxideGainRate,
Optional< Real64 > GenericContamGainRate,
Optional< int > ReturnAirNodeNum // for return air heat gains
Optional< int > RetNodeNum // for return air heat gains
)
{

Expand Down Expand Up @@ -207,8 +207,8 @@ SetupZoneInternalGain(
ZoneIntGain( ZoneNum ).Device( ZoneIntGain( ZoneNum ).NumberOfDevices ).PtrGenericContamGainRate >>= ZeroPointerVal;
}

if ( present( ReturnAirNodeNum ) ) {

if ( present( RetNodeNum ) ) {
ZoneIntGain( ZoneNum ).Device( ZoneIntGain( ZoneNum ).NumberOfDevices ).ReturnAirNodeNum = RetNodeNum;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/HeatBalanceInternalHeatGains.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SetupZoneInternalGain(
Optional< Real64 > ReturnAirLatentGainRate = _,
Optional< Real64 > CarbonDioxideGainRate = _,
Optional< Real64 > GenericContamGainRate = _,
Optional< int > ReturnAirNodeNum = _ // for return air heat gains
Optional< int > RetNodeNum = _ // for return air heat gains
);

} // EnergyPlus
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/InternalHeatGains.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ namespace InternalHeatGains {
SetupEMSInternalVariable( "Lighting Power Design Level", Lights( Loop ).Name, "[W]", Lights( Loop ).DesignLevel );
} // EMS
//setup internal gains
if ( ! ErrorsFound ) SetupZoneInternalGain( Lights( Loop ).ZonePtr, "Lights", Lights( Loop ).Name, IntGainTypeOf_Lights, Lights( Loop ).ConGainRate, Lights( Loop ).RetAirGainRate, Lights( Loop ).RadGainRate, _, _, _, Lights(Loop).ReturnNodePtr );
if ( ! ErrorsFound ) SetupZoneInternalGain( Lights( Loop ).ZonePtr, "Lights", Lights( Loop ).Name, IntGainTypeOf_Lights, Lights( Loop ).ConGainRate, Lights( Loop ).RetAirGainRate, Lights( Loop ).RadGainRate, _, _, _, _, Lights(Loop).ReturnNodePtr );

// send values to predefined lighting summary report
liteName = Lights( Loop ).Name;
Expand Down

1 comment on commit 7ebff60

@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.

Beyond1Airloop (mjwitte) - x86_64-MacOS-10.9-clang: OK (2397 of 2417 tests passed, 564 test warnings)

  • 584 tests had: AUD diffs.
  • 511 tests had: BND diffs.
  • 20 tests had: EIO diffs.
  • 20 tests had: ESO big diffs.
  • 20 tests had: MTR big diffs.
  • 18 tests had: Table big diffs.
  • 2 tests had: SSZ small diffs.
  • 2 tests had: ZSZ small diffs.
  • 3 tests had: ERR diffs.
  • 1 test had: RDD diffs.

Build Badge Test Badge

Please sign in to comment.