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';