From 14b0dd5104c0d77d962fdb70495236964d887665 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 17 Mar 2011 10:29:48 +0100 Subject: [PATCH] ext: fix in mur-ABC extension --- FDTD/extensions/engine_ext_mur_abc.cpp | 3 ++- FDTD/extensions/engine_extension.h | 8 ++++---- FDTD/extensions/operator_ext_mur_abc.cpp | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/FDTD/extensions/engine_ext_mur_abc.cpp b/FDTD/extensions/engine_ext_mur_abc.cpp index 3fee2dd..d877497 100644 --- a/FDTD/extensions/engine_ext_mur_abc.cpp +++ b/FDTD/extensions/engine_ext_mur_abc.cpp @@ -112,8 +112,9 @@ void Engine_Ext_Mur_ABC::DoPreVoltageUpdates(int threadID) case Engine::SSE: { Engine_sse* eng_sse = (Engine_sse*) m_Eng; - for (pos[m_nyP]=0; pos[m_nyP] diff --git a/FDTD/extensions/operator_ext_mur_abc.cpp b/FDTD/extensions/operator_ext_mur_abc.cpp index 26a209c..71d7ad9 100644 --- a/FDTD/extensions/operator_ext_mur_abc.cpp +++ b/FDTD/extensions/operator_ext_mur_abc.cpp @@ -102,12 +102,12 @@ void Operator_Ext_Mur_ABC::SetDirection(int ny, bool top_ny) } else { - m_LineNr = m_Op->GetNumberOfLines(m_ny)-1; - m_LineNr_Shift = m_Op->GetNumberOfLines(m_ny) - 2; + m_LineNr = m_Op->GetOriginalNumLines(m_ny)-1; + m_LineNr_Shift = m_Op->GetOriginalNumLines(m_ny) - 2; } - m_numLines[0] = m_Op->GetNumberOfLines(m_nyP); - m_numLines[1] = m_Op->GetNumberOfLines(m_nyPP); + m_numLines[0] = m_Op->GetOriginalNumLines(m_nyP); + m_numLines[1] = m_Op->GetOriginalNumLines(m_nyPP); m_Mur_Coeff_nyP = Create2DArray(m_numLines); m_Mur_Coeff_nyPP = Create2DArray(m_numLines);