From 6c80ad021d7540e71a48b0eb361f607e0e4a5a11 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 16 Aug 2013 13:16:39 +0200 Subject: [PATCH] pml: fix in material calculation Signed-off-by: Thorsten Liebig --- FDTD/extensions/operator_ext_upml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FDTD/extensions/operator_ext_upml.cpp b/FDTD/extensions/operator_ext_upml.cpp index 487e04e..7086ae9 100644 --- a/FDTD/extensions/operator_ext_upml.cpp +++ b/FDTD/extensions/operator_ext_upml.cpp @@ -396,7 +396,7 @@ bool Operator_Ext_UPML::BuildExtension() pos[2] = loc_pos[2] + m_StartPos[2]; for (int n=0; n<3; ++n) { - m_Op->Calc_EffMatPos(0,pos,eff_Mat); + m_Op->Calc_EffMatPos(n,pos,eff_Mat); CalcGradingKappa(n, pos,__Z0__ ,kappa_v ,kappa_i); nP = (n+1)%3; nPP = (n+2)%3;