From 790af3be302c3fa4c8ad4c492615de8598b9619a Mon Sep 17 00:00:00 2001
From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz>
Date: Tue, 12 Feb 2013 21:24:30 +0100
Subject: [PATCH] Fixing method write in tnlGrid.

---
 src/implementation/mesh/tnlGrid2D_impl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/implementation/mesh/tnlGrid2D_impl.h b/src/implementation/mesh/tnlGrid2D_impl.h
index 4977931659..f626a05f1e 100644
--- a/src/implementation/mesh/tnlGrid2D_impl.h
+++ b/src/implementation/mesh/tnlGrid2D_impl.h
@@ -250,7 +250,7 @@ bool tnlGrid< 2, Real, Device, Index> :: write( const MeshFunction& function,
          for( IndexType i = 0; i < getDimensions(). x(); i++ )
          {
             const RealType x = this -> getLowerCorner(). x() + i * hx;
-            const RealType y = this -> getLowerCorner(). y() + i * hy;
+            const RealType y = this -> getLowerCorner(). y() + j * hy;
             file << x << " " << " " << y << " " << function[ this -> getNodeIndex( j, i ) ] << endl;
          }
          file << endl;
-- 
GitLab