Skip to content

Commit

Permalink
fix build warnings in coil sizing report
Browse files Browse the repository at this point in the history
  • Loading branch information
EnergyArchmage committed Feb 18, 2018
1 parent ed568c1 commit 314cdd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 41 deletions.
32 changes: 9 additions & 23 deletions src/EnergyPlus/ReportCoilSelection.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois and
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights
// reserved.
//
// If you have questions about your rights to use or distribute this software, please contact
// Berkeley Lab's Innovation & Partnerships Office at IPO@lbl.gov.
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
// contributors. All rights reserved.
//
// NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
// U.S. Government consequently retains certain rights. As such, the U.S. Government has been
Expand Down Expand Up @@ -35,7 +33,7 @@
// specifically required in this Section (4), Licensee shall not use in a company name, a
// product name, in advertising, publicity, or other promotional activities any name, trade
// name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
// similar designation, without Lawrence Berkeley National Laboratory's prior written consent.
// similar designation, without the U.S. Department of Energy's prior written consent.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
Expand All @@ -46,16 +44,6 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the
// features, functionality or performance of the source code ("Enhancements") to anyone; however,
// if you choose to make your Enhancements available either publicly, or directly to Lawrence
// Berkeley National Laboratory, without imposing a separate written license agreement for such
// Enhancements, then you hereby grant the following license: a non-exclusive, royalty-free
// perpetual license to install, use, modify, prepare derivative works, incorporate into other
// computer software, distribute, and sublicense such enhancements or derivative works thereof,
// in binary and source code form.


// C++ Headers
#include <string>
Expand Down Expand Up @@ -124,8 +112,6 @@ CoilSelectionData::CoilSelectionData( //constructor
coilSizingMethodConcurrence( -999 ),
coilSizingMethodCapacity( -999 ),
coilSizingMethodAirFlow( -999 ),
//coilDesCapUser( -999.0 ),
//coilVolFlowUser( -999.0 ),
capIsAutosized( false ),
volFlowIsAutosized( false ),
coilWaterFlowUser( -999.0 ),
Expand Down Expand Up @@ -177,9 +163,9 @@ CoilSelectionData::CoilSelectionData( //constructor
rhoStandAir( -999.0 ),
rhoFluid( -999.0 ),
cpFluid( -999.0 ),
coilCapFTIdealPeak( 1.0 ),
coilRatedTotCap( -999.0 ),
coilRatedSensCap( -999.0 ),
coilCapFTIdealPeak( 1.0 ), // = 1
ratedAirMassFlow( -999.0 ),
ratedCoilInDb( -999.0 ),
ratedCoilInWb( -999.0 ),
Expand Down Expand Up @@ -260,7 +246,7 @@ ReportCoilSelection::writeCoilSelectionOutput()
} else if ( c->zoneName.size() > 1 ) {
//make list of zone names
std::string tmpZoneList;
for ( int vecLoop = 0; vecLoop < c->zoneName.size(); ++vecLoop ) {
for ( std::size_t vecLoop = 0; vecLoop < c->zoneName.size(); ++vecLoop ) {
tmpZoneList += c->zoneName[ vecLoop ] + "; " ;
}
OutputReportPredefined::PreDefTableEntry( OutputReportPredefined::pdchCoilZoneName, c->coilName_, tmpZoneList );
Expand Down Expand Up @@ -1688,7 +1674,7 @@ ReportCoilSelection::setZoneLatentLoadCoolingIdealPeak(
for ( auto & c : coilSelectionDataObjs ) {

if ( c->isCooling ) {
for ( int zoneInd = 0; zoneInd < c->zoneNum.size(); ++zoneInd) {
for ( std::size_t zoneInd = 0; zoneInd < c->zoneNum.size(); ++zoneInd) {
if ( zoneIndex == c->zoneNum[ zoneInd ] ) {
c->rmLatentAtPeak += zoneCoolingLatentLoad;
break;
Expand All @@ -1708,7 +1694,7 @@ ReportCoilSelection::setZoneLatentLoadHeatingIdealPeak(
for ( auto & c : coilSelectionDataObjs ) {

if ( c->isHeating ) {
for ( int zoneInd = 0; zoneInd < c->zoneNum.size(); ++zoneInd) {
for ( std::size_t zoneInd = 0; zoneInd < c->zoneNum.size(); ++zoneInd) {
if ( zoneIndex == c->zoneNum[ zoneInd ] ) {
c->rmLatentAtPeak += zoneHeatingLatentLoad;
break;
Expand Down
23 changes: 5 additions & 18 deletions src/EnergyPlus/ReportCoilSelection.hh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois and
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights
// reserved.
//
// If you have questions about your rights to use or distribute this software, please contact
// Berkeley Lab's Innovation & Partnerships Office at IPO@lbl.gov.
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
// contributors. All rights reserved.
//
// NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
// U.S. Government consequently retains certain rights. As such, the U.S. Government has been
Expand Down Expand Up @@ -35,7 +33,7 @@
// specifically required in this Section (4), Licensee shall not use in a company name, a
// product name, in advertising, publicity, or other promotional activities any name, trade
// name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
// similar designation, without Lawrence Berkeley National Laboratory's prior written consent.
// similar designation, without the U.S. Department of Energy's prior written consent.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
Expand All @@ -46,15 +44,6 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the
// features, functionality or performance of the source code ("Enhancements") to anyone; however,
// if you choose to make your Enhancements available either publicly, or directly to Lawrence
// Berkeley National Laboratory, without imposing a separate written license agreement for such
// Enhancements, then you hereby grant the following license: a non-exclusive, royalty-free
// perpetual license to install, use, modify, prepare derivative works, incorporate into other
// computer software, distribute, and sublicense such enhancements or derivative works thereof,
// in binary and source code form.


#ifndef ReportCoilSelection_hh_INCLUDED
Expand Down Expand Up @@ -188,8 +177,6 @@ public: // data
Real64 rhoFluid; // density of coil plant fluid [kg/m3]
Real64 cpFluid; // specific heat capacity of coil plant fluid [J/kg-K]
Real64 coilCapFTIdealPeak; // coil capacity multiplier at Ideal Peak conditions, func of temperature only, to the input rating point (usually for a DX coil) [W]
Real64 coilCapModFacSimPeak; // coil capacity multiplier at Simulation Peak conditions, total modification including func temp, func air flow, part load, speed etc.
//Values at rating point, reference point, nominal values for model input.
Real64 coilRatedTotCap; // rated coil total capacity [W]
Real64 coilRatedSensCap; // rated coil sensible capacity [W]
Real64 ratedAirMassFlow; // rated coil design air mass flow rate [m3/s]
Expand Down

8 comments on commit 314cdd5

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

CoilSizingReport (EnergyArchmage) - x86_64-MacOS-10.9-clang: OK (2848 of 2851 tests passed, 616 test warnings)

Messages:

  • 619 tests had: AUD diffs.
  • 3 tests had: EIO diffs.
  • 3 tests had: ESO big diffs.
  • 3 tests had: Table big diffs.
  • 100 tests had: ERR diffs.
  • 1 test had: Table small diffs.
  • 1 test had: MTR big diffs.

Failures:

regression Test Summary

  • Passed: 616
  • Failed: 3

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

CoilSizingReport (EnergyArchmage) - i386-Windows-7-VisualStudio-14: OK (2851 of 2851 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

CoilSizingReport (EnergyArchmage) - Win64-Windows-7-VisualStudio-14: OK (2848 of 2851 tests passed, 616 test warnings)

Messages:

  • 619 tests had: AUD diffs.
  • 100 tests had: ERR diffs.
  • 3 tests had: EIO diffs.
  • 3 tests had: ESO big diffs.
  • 3 tests had: Table big diffs.
  • 1 test had: Table small diffs.
  • 1 test had: MTR big diffs.

Failures:

regression Test Summary

  • Passed: 616
  • Failed: 3

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.

CoilSizingReport (EnergyArchmage) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (2888 of 2891 tests passed, 620 test warnings)

Messages:

  • 623 tests had: AUD diffs.
  • 3 tests had: EIO diffs.
  • 3 tests had: ESO big diffs.
  • 3 tests had: Table big diffs.
  • 99 tests had: ERR diffs.
  • 1 test had: Table small diffs.
  • 1 test had: MTR big diffs.

Failures:

regression Test Summary

  • Passed: 636
  • Failed: 3

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.

CoilSizingReport (EnergyArchmage) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

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

CoilSizingReport (EnergyArchmage) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (1611 of 1611 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.

CoilSizingReport (EnergyArchmage) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (2235 of 2235 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.

CoilSizingReport (EnergyArchmage) - x86_64-Linux-Ubuntu-14.04-custom_check: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

Please sign in to comment.