summaryrefslogtreecommitdiff
path: root/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp')
-rw-r--r--openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp b/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp
index 9f386fc..21ad184 100644
--- a/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp
+++ b/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp
@@ -225,6 +225,9 @@ bool Operator_Ext_LorentzMaterial::BuildExtension()
// CSProperties* prop = m_Op->GetGeometryCSX()->GetPropertyByCoordPriority(coord,(CSProperties::PropertyType)(CSProperties::METAL | CSProperties::MATERIAL), true);
CSProperties* prop = m_Op->GetGeometryCSX()->GetPropertyByCoordPriority(coord, vPrims, true);
+
+ if (prop==NULL) continue;
+
if ((mat = prop->ToLorentzMaterial()))
{
w_plasma = mat->GetEpsPlasmaFreqWeighted(order,n,coord) * 2 * PI;
@@ -277,6 +280,9 @@ bool Operator_Ext_LorentzMaterial::BuildExtension()
// CSProperties* prop = m_Op->GetGeometryCSX()->GetPropertyByCoordPriority(coord,(CSProperties::PropertyType)(CSProperties::METAL | CSProperties::MATERIAL), true);
CSProperties* prop = m_Op->GetGeometryCSX()->GetPropertyByCoordPriority(coord, vPrims, true);
+
+ if (prop==NULL) continue;
+
if ((mat = prop->ToLorentzMaterial()))
{
w_plasma = mat->GetMuePlasmaFreqWeighted(order,n,coord) * 2 * PI;