From e5d0529a4e3cf4f48a266a330bd64974de57e0d9 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 27 Mar 2013 12:02:52 +0100 Subject: [PATCH] matlab: waveguide ports don't need mesh info, only drawing unit Signed-off-by: Thorsten Liebig --- matlab/AddCircWaveGuidePort.m | 3 --- matlab/AddWaveGuidePort.m | 3 --- 2 files changed, 6 deletions(-) diff --git a/matlab/AddCircWaveGuidePort.m b/matlab/AddCircWaveGuidePort.m index 4993489..c09189c 100644 --- a/matlab/AddCircWaveGuidePort.m +++ b/matlab/AddCircWaveGuidePort.m @@ -73,9 +73,6 @@ end if ~isfield(CSX,'RectilinearGrid') 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 unit = CSX.RectilinearGrid.ATTRIBUTE.DeltaUnit; diff --git a/matlab/AddWaveGuidePort.m b/matlab/AddWaveGuidePort.m index cc012c2..d41194d 100644 --- a/matlab/AddWaveGuidePort.m +++ b/matlab/AddWaveGuidePort.m @@ -51,9 +51,6 @@ function [CSX,port] = AddWaveGuidePort( CSX, prio, portnr, start, stop, dir, E_W %check mesh if ~isfield(CSX,'RectilinearGrid') 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 port.type='WaveGuide';