From 8064b589d297d055f1f383ffbfdcc9e355bda7fc Mon Sep 17 00:00:00 2001 From: "Michael Stumpf (ifhcluster)" Date: Tue, 26 Mar 2019 12:25:50 +0000 Subject: [PATCH] renamed --- ...ld_complete_ucftar.m => read_field_complete_hucf.m} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename matlab/{read_field_complete_ucftar.m => read_field_complete_hucf.m} (80%) diff --git a/matlab/read_field_complete_ucftar.m b/matlab/read_field_complete_hucf.m similarity index 80% rename from matlab/read_field_complete_ucftar.m rename to matlab/read_field_complete_hucf.m index aa561cd..2b8546e 100644 --- a/matlab/read_field_complete_ucftar.m +++ b/matlab/read_field_complete_hucf.m @@ -1,8 +1,8 @@ -function [q,x,y,z] = read_field_complete_ucftar(htar,field,varargin) +function [q,x,y,z] = read_field_complete_hucf(hucf,field,varargin) % [q,x,y,z] = read_field_complete_ucftar(file,field,varargin) % Reads a specific field from all processor chunks.(UCF tar version) % Input - % htar handle of tar file (ustar object) + % hucf handle of UCF object (ustar,ucfmulti) % field field to be read % {'u','v','w','p','s1','s2',...} % ? step index of step to be read (default: 1) @@ -31,7 +31,7 @@ function [q,x,y,z] = read_field_complete_ucftar(htar,field,varargin) end % Read parameters - params = read_parameters_ucf(htar,'tarmode',1); + params = read_parameters_ucf(hucf); % Construct an array with final mesh size nx = params.mesh.(sprintf('nx%s',cmesh)); @@ -40,7 +40,7 @@ function [q,x,y,z] = read_field_complete_ucftar(htar,field,varargin) q = zeros(nx,ny,nz); % Read grid - [x.u,y.u,z.u,x.v,y.v,z.v,x.w,y.w,z.w,x.p,y.p,z.p] = read_grid_ucf(htar,'tarmode',1); + [x.u,y.u,z.u,x.v,y.v,z.v,x.w,y.w,z.w,x.p,y.p,z.p] = read_grid_ucf(hucf); x = x.(cmesh); y = y.(cmesh); z = z.(cmesh); @@ -50,7 +50,7 @@ function [q,x,y,z] = read_field_complete_ucftar(htar,field,varargin) % Now read chunk by chunk for iproc=0:nprocs-1 - [data,ib,jb,kb,nxl,nyl,nzl] = read_field_chunk_ucf(htar,field,'tarmode',1,'rank',iproc,'ghost',0,'step',istep); + [data,ib,jb,kb,nxl,nyl,nzl] = read_field_chunk_ucf(hucf,field,'rank',iproc,'ghost',0,'step',istep); q(ib:ib+nxl-1,jb:jb+nyl-1,kb:kb+nzl-1) = data; end end