matlab: waveguide ports don't need mesh info, only drawing unit
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/1/head
parent
8d8759cb1b
commit
e5d0529a4e
|
@ -73,9 +73,6 @@ end
|
||||||
|
|
||||||
if ~isfield(CSX,'RectilinearGrid')
|
if ~isfield(CSX,'RectilinearGrid')
|
||||||
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
||||||
if (~isfield(CSX.RectilinearGrid,'XLines') || ~isfield(CSX.RectilinearGrid,'YLines') || ~isfield(CSX.RectilinearGrid,'ZLines'))
|
|
||||||
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
unit = CSX.RectilinearGrid.ATTRIBUTE.DeltaUnit;
|
unit = CSX.RectilinearGrid.ATTRIBUTE.DeltaUnit;
|
||||||
|
|
|
@ -51,9 +51,6 @@ function [CSX,port] = AddWaveGuidePort( CSX, prio, portnr, start, stop, dir, E_W
|
||||||
%check mesh
|
%check mesh
|
||||||
if ~isfield(CSX,'RectilinearGrid')
|
if ~isfield(CSX,'RectilinearGrid')
|
||||||
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
||||||
if (~isfield(CSX.RectilinearGrid,'XLines') || ~isfield(CSX.RectilinearGrid,'YLines') || ~isfield(CSX.RectilinearGrid,'ZLines'))
|
|
||||||
error 'mesh needs to be defined! Use DefineRectGrid() first!';
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
port.type='WaveGuide';
|
port.type='WaveGuide';
|
||||||
|
|
Loading…
Reference in New Issue