matlab: regression fix in ConvertHDF5_VTK
parent
640419ab7a
commit
b6196230f5
|
@ -57,14 +57,14 @@ if (do_FD_dump)
|
||||||
else
|
else
|
||||||
ph = linspace(0,360,phase_N+1);
|
ph = linspace(0,360,phase_N+1);
|
||||||
ph = ph(1:end-1);
|
ph = ph(1:end-1);
|
||||||
for n = 1:numel(field.FD.freq)
|
for n = 1:numel(field.FD.frequency)
|
||||||
for p = ph
|
for p = ph
|
||||||
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_' num2str(p,'%03d') '.vtk' ];
|
filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_' num2str(p,'%03d') '.vtk' ];
|
||||||
Dump2VTK(filename, real(field.FD.values{n}*exp(1j*p*pi/180)), mesh, fieldname, varargin{:});
|
Dump2VTK(filename, real(field.FD.values{n}*exp(1j*p*pi/180)), mesh, fieldname, varargin{:});
|
||||||
end
|
end
|
||||||
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_abs.vtk' ];
|
filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_abs.vtk' ];
|
||||||
Dump2VTK(filename, abs(field.FD.values{n}), mesh, fieldname, varargin{:});
|
Dump2VTK(filename, abs(field.FD.values{n}), mesh, fieldname, varargin{:});
|
||||||
filename = [vtk_prefix '_' num2str(field.FD.freq(n)) '_ang.vtk' ];
|
filename = [vtk_prefix '_' num2str(field.FD.frequency(n)) '_ang.vtk' ];
|
||||||
Dump2VTK(filename, angle(field.FD.values{n}), mesh, fieldname, varargin{:});
|
Dump2VTK(filename, angle(field.FD.values{n}), mesh, fieldname, varargin{:});
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue