diff --git a/FDTD/operator_ext_upml.cpp b/FDTD/operator_ext_upml.cpp index 752f950..19ca216 100644 --- a/FDTD/operator_ext_upml.cpp +++ b/FDTD/operator_ext_upml.cpp @@ -319,3 +319,12 @@ Engine_Extension* Operator_Ext_UPML::CreateEngineExtention() Engine_Ext_UPML* eng_ext = new Engine_Ext_UPML(this); return eng_ext; } + +void Operator_Ext_UPML::ShowStat(ostream &ostr) const +{ + Operator_Extension::ShowStat(ostr); + + ostr << " PML range\t\t: " << "[" << m_StartPos[0]<< "," << m_StartPos[1]<< "," << m_StartPos[2]<< "] to [" + << m_StartPos[0]+m_numLines[0]-1 << "," << m_StartPos[1]+m_numLines[1]-1 << "," << m_StartPos[2]+m_numLines[2]-1 << "]" << endl; + ostr << " Grading function\t: \"" << m_GradFunc << "\"" << endl; +} diff --git a/FDTD/operator_ext_upml.h b/FDTD/operator_ext_upml.h index 9d5ca0d..ddf9a15 100644 --- a/FDTD/operator_ext_upml.h +++ b/FDTD/operator_ext_upml.h @@ -60,6 +60,8 @@ public: virtual string GetExtensionName() const {return string("Uniaxial PML Extension");} + virtual void ShowStat(ostream &ostr) const; + //! Create the UPML static bool Create_UPML(Operator* op, int BC[6], unsigned int size[6], string gradFunc);