fix: check for valid interpolation

pull/1/head
Thorsten Liebig 2010-09-28 16:30:40 +02:00
parent 70345c32f0
commit 8f4f9729a4
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ function [field_i mesh_i] = GetField_Interpolation(field, mesh, numLines, vararg
%
% See also ReadHDF5Dump ReadHDF5FieldData ReadHDF5Mesh
if (~isnumeric(numLines) || numel(numLines)~=3)
error('openEMS:GetField_Interpolation: numLines for interpolation must be a vector...');
end
x = mesh.lines{1};
y = mesh.lines{2};
z = mesh.lines{3};