Merge branch 'init' of git.scc.kit.edu:pe7321/ucftools into init
This commit is contained in:
commit
6b9922dccf
|
|
@ -105,9 +105,9 @@ function [data,ib,jb,kb,nxl,nyl,nzl,ighost] = read_field_chunk_legacy(file,fproc
|
||||||
end
|
end
|
||||||
|
|
||||||
% Open uvwp file
|
% Open uvwp file
|
||||||
fid = fopen(fuvwp,'r',endian);
|
fid = fopen(file,'r',endian);
|
||||||
if fid<0
|
if fid<0
|
||||||
error('File not found: %s',fuvwp);
|
error('File not found: %s',file);
|
||||||
end
|
end
|
||||||
|
|
||||||
% Determine header size
|
% Determine header size
|
||||||
|
|
@ -131,7 +131,7 @@ function [data,ib,jb,kb,nxl,nyl,nzl,ighost] = read_field_chunk_legacy(file,fproc
|
||||||
else
|
else
|
||||||
fseek(fid,nheader+reclen,'cof');
|
fseek(fid,nheader+reclen,'cof');
|
||||||
data = fread(fid,ndata,precision);
|
data = fread(fid,ndata,precision);
|
||||||
data = reshape(data,nxl,nyl,nzl);
|
data = reshape(data,nxl+2*ighost,nyl+2*ighost,nzl+2*ighost);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue