From 467e9cbfff6cfe59f1d0c38a2b802a18f9ef6712 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Tue, 23 Jan 2024 16:37:56 +0100 Subject: [PATCH] fix bug when callingb0 for -1 --- matlab/TCV/gdat_tcv.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m index ba6cab40..ea0a4a1d 100644 --- a/matlab/TCV/gdat_tcv.m +++ b/matlab/TCV/gdat_tcv.m @@ -829,7 +829,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') case {'b0'} % B0 at R0=0.88 r0exp=0.88; - added_correction_str=''; + added_correction_str='' if isfield(gdat_data.gdat_params,'source') && ~isempty(gdat_data.gdat_params.source) ... && length(gdat_data.gdat_params.source)>=5 && strcmp(lower(gdat_data.gdat_params.source(1:5)),'liuqe') % expect liuqe or liuqe.m to have liuqe time-base, otherwise give full time base @@ -850,7 +850,6 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') else if liuqe_matlab==0 added_correction = 1.0; % correction already in liuqe.f - added_correction_str = ['']; nodenameeff = ['tcv_eq(''BZERO'',''LIUQE' substr_liuqe_tcv_eq ''')']; else if isempty(substr_liuqe); substr_liuqe = '_1'; end -- GitLab