summaryrefslogtreecommitdiff
path: root/openEMS/FDTD/extensions/operator_ext_tfsf.cpp
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2019-02-10 08:20:54 +0000
committerRuben Undheim <ruben.undheim@gmail.com>2019-02-10 08:20:54 +0000
commitffda26309128be5d112df61a03e4827e47ecfac8 (patch)
tree7552a0f13b6873dbf98c41b84cb81bac0f220ca7 /openEMS/FDTD/extensions/operator_ext_tfsf.cpp
parent086965becc2a02254e3441a1d97b61ccab2d66ea (diff)
Import GIT HEAD of openEMS sub-project (with Python interface)
Diffstat (limited to 'openEMS/FDTD/extensions/operator_ext_tfsf.cpp')
-rw-r--r--openEMS/FDTD/extensions/operator_ext_tfsf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openEMS/FDTD/extensions/operator_ext_tfsf.cpp b/openEMS/FDTD/extensions/operator_ext_tfsf.cpp
index 663dc1f..62fd580 100644
--- a/openEMS/FDTD/extensions/operator_ext_tfsf.cpp
+++ b/openEMS/FDTD/extensions/operator_ext_tfsf.cpp
@@ -159,7 +159,7 @@ bool Operator_Ext_TFSF::BuildExtension()
else
m_PhVel=m_Op->CalcNumericPhaseVelocity(m_Start,m_Stop,m_PropDir,m_Frequency);
- if ((m_PhVel<0) || (m_PhVel>__C0__/ref_index) || isnan(m_PhVel))
+ if ((m_PhVel<0) || (m_PhVel>__C0__/ref_index) || std::isnan(m_PhVel))
{
cerr << "Operator_Ext_TFSF::BuildExtension: Warning, invalid phase velocity found, resetting to c0! " << endl;
m_PhVel = __C0__/ref_index;