From 623b6b5cbaef51e7376865ceda92da8b253bbf10 Mon Sep 17 00:00:00 2001 From: Antoine Hoffmann <antoine.hoffmann@epfl.ch> Date: Thu, 19 Oct 2023 11:58:38 +0200 Subject: [PATCH] stores now the fort_XX params in the struct --- matlab/load/compile_results_low_mem.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/load/compile_results_low_mem.m b/matlab/load/compile_results_low_mem.m index a90409a8..33fd76b5 100644 --- a/matlab/load/compile_results_low_mem.m +++ b/matlab/load/compile_results_low_mem.m @@ -23,6 +23,7 @@ DATA.outfilenames = {}; ii = 1; while(CONTINUE) filename = sprintf([DIRECTORY,'outputs_%.2d.h5'],JOBNUM); + fortname = sprintf([DIRECTORY,'fort_%.2d.90'],JOBNUM); % Check presence and jobnummax if (exist(filename, 'file') == 2 && JOBNUM <= JOBNUMMAX) DATA.outfilenames{ii} = filename; @@ -35,6 +36,9 @@ while(CONTINUE) if openable %% load results %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fprintf('Loading ID %.2d (%s)\n',JOBNUM,filename); + % loading input parameters + DATA.(sprintf('fort_%.2d',JOBNUM)) = struct(); + DATA.(sprintf('fort_%.2d',JOBNUM)) = read_namelist(fortname); % Loading from output file CPUTIME = h5readatt(filename,'/data/input','cpu_time'); DT_SIM = h5readatt(filename,'/data/input/basic','dt'); -- GitLab