From 4468902f94ba1be5d83f8c9c77107c48b42efc3d Mon Sep 17 00:00:00 2001
From: Olivier Sauter <olivier.sauter@epfl.ch>
Date: Tue, 28 May 2024 19:46:49 +0200
Subject: [PATCH] add comment

---
 matlab/TCV/gdat_tcv.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m
index ffee0fb6..deae6b52 100644
--- a/matlab/TCV/gdat_tcv.m
+++ b/matlab/TCV/gdat_tcv.m
@@ -2770,7 +2770,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
         nodenameeff_rho = strrep(nodenameeff,'q_psi','rho');
         rho_eff = mdsvalue(nodenameeff_rho);
         if numel(tracetdi.dim{1}) == numel(rho_eff)
-          tracetdi.dim{1}(:) = rho_eff;
+          tracetdi.dim{1}(:) = rho_eff; % it is not sqrt(linspace...) anymore, hence take rho itself
         end
       end
     end
-- 
GitLab