From 1532d2a8ed4827943a394297b92065e331e1a822 Mon Sep 17 00:00:00 2001
From: Antoine Merle <antoine.merle@epfl.ch>
Date: Fri, 24 Jan 2020 12:45:29 +0100
Subject: [PATCH] Fix bug when computing G-coil geometry.

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

diff --git a/matlab/TCV_IMAS/tcv_ids_coil.m b/matlab/TCV_IMAS/tcv_ids_coil.m
index 8fc6ae81..9f2bda74 100644
--- a/matlab/TCV_IMAS/tcv_ids_coil.m
+++ b/matlab/TCV_IMAS/tcv_ids_coil.m
@@ -60,7 +60,7 @@ iT = strcmp('T_003',namepfc);      % Return current
 nt_c(iT)=1;
 
 % Approximate circular G-coil conductor with a square of the same crosssection
-iG=strcmp('G_00',namepfc);
+iG=strncmp('G_00',namepfc,4);
 w_c(iG)=sqrt(xsect_c(iG));
 h_c(iG)=sqrt(xsect_c(iG));
 
-- 
GitLab