From ddfb4378d58464ad2ac1aee9558d8323f5f95d67 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Fri, 26 Jan 2024 12:00:17 +0100
Subject: [PATCH] Correct number of iterations for TPPOAN binary output

---
 src/cluster/cluster.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp
index c8aa1da3..42a0c4c9 100644
--- a/src/cluster/cluster.cpp
+++ b/src/cluster/cluster.cpp
@@ -517,7 +517,7 @@ void cluster(string config_file, string data_file, string output_path) {
 		      tppoan.write(reinterpret_cast<char *>(&value), sizeof(double));
 		    }
 		  }
-		  for (int i = 0; i < 3; i++) {
+		  for (int i = 0; i < 2; i++) {
 		    double value = c1ao->scscm[i];
 		    tppoan.write(reinterpret_cast<char *>(&value), sizeof(double));
 		    value = c1ao->scscpm[i].real();
-- 
GitLab