From 8d10970c3c8c441dcd908f62a11fa432d62e12ca Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 6 Jun 2012 10:16:55 +0200 Subject: [PATCH] operator extension saves information about cylindrical mesh special case r==0 --- FDTD/extensions/operator_extension.cpp | 3 +++ FDTD/extensions/operator_extension.h | 1 + 2 files changed, 4 insertions(+) diff --git a/FDTD/extensions/operator_extension.cpp b/FDTD/extensions/operator_extension.cpp index 60f09e0..dd8e189 100644 --- a/FDTD/extensions/operator_extension.cpp +++ b/FDTD/extensions/operator_extension.cpp @@ -23,7 +23,10 @@ Operator_Extension::Operator_Extension(Operator* op) { m_Op = op; + m_CC_R0_included = false; m_Op_Cyl = dynamic_cast(op); + if (m_Op_Cyl) + m_CC_R0_included=m_Op_Cyl->GetR0Included(); } Operator_Extension::~Operator_Extension() diff --git a/FDTD/extensions/operator_extension.h b/FDTD/extensions/operator_extension.h index 7446269..81c5b3e 100644 --- a/FDTD/extensions/operator_extension.h +++ b/FDTD/extensions/operator_extension.h @@ -70,6 +70,7 @@ protected: //Cylindrical FDTD Operator (not NULL if a cylindrical FDTD is used) Operator_Cylinder* m_Op_Cyl; + bool m_CC_R0_included; }; #endif // OPERATOR_EXTENSION_H