From 66ae0b6ae0ef539bab766a1c630f1f22340b6c2e Mon Sep 17 00:00:00 2001
From: jstark <jstark@mpi-cbg.de>
Date: Sat, 19 Nov 2022 16:11:03 +0100
Subject: [PATCH] Adding missing append mode to append_value_to_textfile.

---
 src/level_set/redistancing_Sussman/HelpFunctions.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/level_set/redistancing_Sussman/HelpFunctions.hpp b/src/level_set/redistancing_Sussman/HelpFunctions.hpp
index bef06013..63466973 100644
--- a/src/level_set/redistancing_Sussman/HelpFunctions.hpp
+++ b/src/level_set/redistancing_Sussman/HelpFunctions.hpp
@@ -75,7 +75,7 @@ bool isApproxEqual(T val1, T val2, T tolerance)
 template <typename T>
 void append_value_to_textfile(std::string & textfile, T value)
 {
-	std::ofstream out(textfile);
+	std::ofstream out(textfile, std::ios_base::app);
 	out << value;
 }
 
-- 
GitLab