From ff8aeb6d65c873a698d734e4bf336ac5944a24a6 Mon Sep 17 00:00:00 2001
From: Matteo Vallar <matteo.vallar@epfl.ch>
Date: Fri, 8 Oct 2021 12:14:12 +0000
Subject: [PATCH] modified order of fields when reading "powers" (putting rad
 in last position)

---
 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 d8408371..1600c5b7 100644
--- a/matlab/TCV/gdat_tcv.m
+++ b/matlab/TCV/gdat_tcv.m
@@ -2356,7 +2356,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
    case {'powers'}
     % note: same time array for all main, ec, ohm, nbi, ...
     % At this stage fill just ech, later add nbi
-    sources_avail = {'ohm','ec','nbi1','rad', 'nbi2'}; % note should allow ech, nbh, ohmic in parameter sources
+    sources_avail = {'ohm','ec','nbi1','nbi2','rad'}; % note should allow ech, nbh, ohmic in parameter sources
     % create empty structures for all, so in return one always have same substructres
     for i=1:length(sources_avail)
       gdat_data.(sources_avail{i}).data = [];
-- 
GitLab