From a35d721a11ff9a0625d28404af7efbb74ed177a9 Mon Sep 17 00:00:00 2001 From: Neal Kruis Date: Fri, 28 Oct 2016 11:14:05 -0600 Subject: [PATCH] Minor fix for EIO output. --- src/EnergyPlus/HeatBalanceKivaManager.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/EnergyPlus/HeatBalanceKivaManager.cc b/src/EnergyPlus/HeatBalanceKivaManager.cc index e44a246c456..56851983662 100644 --- a/src/EnergyPlus/HeatBalanceKivaManager.cc +++ b/src/EnergyPlus/HeatBalanceKivaManager.cc @@ -451,13 +451,11 @@ void KivaManager::setupKivaInstances() { grnd.buildDomain(); gio::write( DataGlobals::OutputFileInits, "(A)" ) << "! , 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;