Skip to content

Commit

Permalink
Minor fix for EIO output.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Oct 28, 2016
1 parent f939de7 commit a35d721
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/EnergyPlus/HeatBalanceKivaManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,11 @@ void KivaManager::setupKivaInstances() {
grnd.buildDomain();

gio::write( DataGlobals::OutputFileInits, "(A)" ) << "! <Kiva Foundation Name>, Horizontal Cells, Vertical Cells, Total Cells, Total Exposed Perimeter, Floor Surface, Wall Surface(s)";
std::string fmt = "(A,',',I0',',I0',',I0',',A',',A',',A)";
std::string fmt = "(A,',',I0',',I0',',I0',',A',',A,A)";

std::string wallSurfaceString = DataSurfaces::Surface(kv.wallSurfaces[0]).Name;
std::string wallSurfaceString = "";
for (auto& wl : kv.wallSurfaces) {
if (wl != kv.wallSurfaces[0]) {
wallSurfaceString += ", " + DataSurfaces::Surface(wl).Name;
}
wallSurfaceString += "," + DataSurfaces::Surface(wl).Name;
}
gio::write( DataGlobals::OutputFileInits, fmt ) << foundationInputs[DataSurfaces::Surface(kv.floorSurface).OSCPtr].name << grnd.nX << grnd.nZ << grnd.nX*grnd.nZ << General::RoundSigDigits( grnd.foundation.netPerimeter, 2 ) << DataSurfaces::Surface(kv.floorSurface).Name << wallSurfaceString;

Expand Down

8 comments on commit a35d721

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

kiva (nealkruis) - x86_64-MacOS-10.9-clang: OK (1771 of 1771 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.

kiva (nealkruis) - i386-Windows-7-VisualStudio-12: OK (1771 of 1774 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.

kiva (nealkruis) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (1791 of 1791 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.

kiva (nealkruis) - 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.

kiva (nealkruis) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (1197 of 1197 tests passed, 0 test warnings)

Build Badge Test Badge Coverage 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.

kiva (nealkruis) - Win64-Windows-7-VisualStudio-12: OK (1774 of 1774 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.

kiva (nealkruis) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1774 of 1774 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.

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

Build Badge

Please sign in to comment.