From 492966862e3151c9b58322cab8c61a73f4a4634c Mon Sep 17 00:00:00 2001 From: Antoine Cyril David Hoffmann <ahoffman@spcpc606.epfl.ch> Date: Fri, 18 Dec 2020 15:02:16 +0100 Subject: [PATCH] move matlab auxiliary script --- {wk => matlab}/compile_results.m | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) rename {wk => matlab}/compile_results.m (87%) diff --git a/wk/compile_results.m b/matlab/compile_results.m similarity index 87% rename from wk/compile_results.m rename to matlab/compile_results.m index 3778def6..ee40fafe 100644 --- a/wk/compile_results.m +++ b/matlab/compile_results.m @@ -5,10 +5,8 @@ Ni00_ = []; Ne00_ = []; PHI_ = []; Ts2D_ = []; Ts5D_ = []; - -if strcmp(OUTPUTS.write_non_lin,'.true.') Sipj_ = []; Sepj_ = []; -end + while(CONTINUE) filename = sprintf([BASIC.RESDIR,'outputs_%.2d.h5'],JOBNUM); @@ -22,10 +20,9 @@ while(CONTINUE) Ts2D_ = cat(1,Ts2D_,Ts2D); Ts5D_ = cat(1,Ts5D_,Ts5D); -if strcmp(OUTPUTS.write_non_lin,'.true.') Sipj_ = cat(5,Sipj_,Sipj); Sepj_ = cat(5,Sepj_,Sepj); -end + JOBNUM = JOBNUM + 1; else CONTINUE = 0; @@ -36,7 +33,7 @@ Nipj = Nipj_; Nepj = Nepj_; Ts5D = Ts5D_; Ni00 = Ni00_; Ne00 = Ne00_; PHI = PHI_; Ts2D = Ts2D_; clear Nipj_ Nepj_ Ni00_ Ne00_ PHI_ Ts2D_ Ts5D_ -if strcmp(OUTPUTS.write_non_lin,'.true.') Sipj = Sipj_; Sepj = Sepj_; clear Sipj_ Sepj_ -end \ No newline at end of file + +filename = sprintf([BASIC.RESDIR,'outputs_%.2d.h5'],JOBNUM-1); \ No newline at end of file -- GitLab