From 8f433c5be22a4667c0aeeca232a232f8e8d4d7c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Hanousek=20-=20vz?= <vithanousek@seznam.cz>
Date: Mon, 24 Sep 2018 12:50:22 +0200
Subject: [PATCH] Fix Distributed Grid print function

---
 src/TNL/Meshes/DistributedMeshes/DistributedGrid.hpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/TNL/Meshes/DistributedMeshes/DistributedGrid.hpp b/src/TNL/Meshes/DistributedMeshes/DistributedGrid.hpp
index 21a9bb715c..5a0181a05b 100644
--- a/src/TNL/Meshes/DistributedMeshes/DistributedGrid.hpp
+++ b/src/TNL/Meshes/DistributedMeshes/DistributedGrid.hpp
@@ -523,7 +523,10 @@ String
 DistributedMesh< Grid< Dimension, Real, Device, Index > >::
 printProcessDistr() const
 {
-   return convertToString(this->domainDecomposition[0])+String("-")+convertToString(this->domainDecomposition[1])+String("-")+convertToString(this->domainDecomposition[2]);
+   String res = convertToString(this->domainDecomposition[0]);
+   for(int i=1; i<Dimension; i++)
+        res=res+String("-")+convertToString(this->domainDecomposition[i]);
+   return res;
 };  
 
 template< int Dimension, typename Real, typename Device, typename Index >
-- 
GitLab