From dca73e45fc0f68f875e655bf6f5e4e085f1031a1 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 23 Apr 2010 08:19:56 +0200 Subject: [PATCH] some fixes in cylindrical operator --- FDTD/operator_cylinder.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/FDTD/operator_cylinder.cpp b/FDTD/operator_cylinder.cpp index 0f0f9bb..bc42baa 100644 --- a/FDTD/operator_cylinder.cpp +++ b/FDTD/operator_cylinder.cpp @@ -131,7 +131,9 @@ int Operator_Cylinder::CalcECOperator() if (val) return val; - if (CC_R0_included==false) + //if r=0 is not included -> obviously no special treatment for r=0 + //if alpha direction is not closed, PEC-BC at r=0 necessary and already set... + if ((CC_R0_included==false) || (CC_closedAlpha==false)) return val; unsigned int pos[3]; @@ -144,13 +146,9 @@ int Operator_Cylinder::CalcECOperator() for (pos[1]=0;pos[1]