From 57b1ca691d45578b2eb3b0c905f53fd9bbff9d09 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Sat, 18 Jan 2020 18:12:42 +0100 Subject: [PATCH] add cocos transform --- matlab/IMAS/gdat_imas.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/IMAS/gdat_imas.m b/matlab/IMAS/gdat_imas.m index 064916de..5850cc9a 100644 --- a/matlab/IMAS/gdat_imas.m +++ b/matlab/IMAS/gdat_imas.m @@ -479,7 +479,9 @@ elseif strcmp(mapping_for_imas.method,'switchcase') end % Perform cocos transformation if cocos_out ~= cocos_in if gdat_data.gdat_params.cocos_in ~= gdat_data.gdat_params.cocos_out - warning('should perform cocos transformation, to include...') + [ids_out,cocoscoeff]=ids_generic_cocos_nodes_transformation_symbolic(gdat_data.(ids_top_name),ids_top_name, ... + gdat_data.gdat_params.cocos_in, gdat_data.gdat_params.cocos_out, gdat_data.gdat_params.ipsign_out,gdat_data.gdat_params.b0sign_out, ... + gdat_data.gdat_params.ipsign_in, gdat_data.gdat_params.b0sign_in); end end -- GitLab