From aa3154bb9d365ae9a4f88aba49ea95c0f69c53a2 Mon Sep 17 00:00:00 2001
From: i-bird <i-bird@localhost.localdomain>
Date: Wed, 19 May 2021 01:02:55 +0200
Subject: [PATCH] Fixing IO for grids

---
 src/VTKWriter/VTKWriter_grids_util.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/VTKWriter/VTKWriter_grids_util.hpp b/src/VTKWriter/VTKWriter_grids_util.hpp
index 819d0a6..acbfb85 100644
--- a/src/VTKWriter/VTKWriter_grids_util.hpp
+++ b/src/VTKWriter/VTKWriter_grids_util.hpp
@@ -930,7 +930,7 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> &
 		{
 			// we use float so we have to convert to float
 			auto tmp = p.get(i);
-			//tmp = swap_endian_lt(tmp);
+			tmp = swap_endian_lt(tmp);
 			v_out.write((const char *)&tmp,sizeof(tmp));
 		}
 		for ( ; i < 3 ; i++)
@@ -939,7 +939,7 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> &
 
 			/* coverity[dead_error_begin] */
 			T tmp = 0.0;
-			//tmp = swap_endian_lt(tmp);
+			tmp = swap_endian_lt(tmp);
 			v_out.write((const char *)&tmp,sizeof(tmp));
 		}
 	}
-- 
GitLab