From 51346c1f8fc8e5087e3dbd4d60961492257938d2 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Fri, 19 Apr 2024 14:58:11 +0200 Subject: [PATCH] Use static functions to write transition matrix --- src/cluster/cluster.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp index 79b967a2..6de93394 100644 --- a/src/cluster/cluster.cpp +++ b/src/cluster/cluster.cpp @@ -917,10 +917,9 @@ int cluster_jxi488_cycle(int jxi488, ScattererConfiguration *sconf, GeometryConf if (jxi488 == jwtm) { int nlemt = 2 * c4->nlem; string ttms_name = output_path + "/c_TTMS.hd5"; - TransitionMatrix ttms(nlemt, lm, vk, exri, c1ao->am0m); - ttms.write_binary(ttms_name, "HDF5"); + TransitionMatrix::write_binary(ttms_name, nlemt, lm, vk, exri, c1ao->am0m, "HDF5"); ttms_name = output_path + "/c_TTMS"; - ttms.write_binary(ttms_name); + TransitionMatrix::write_binary(ttms_name, nlemt, lm, vk, exri, c1ao->am0m); } } // label 156: continue from here -- GitLab