Commit bc1d8642 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Update IsStationary criterion


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@3333 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent dd970540
......@@ -596,6 +596,7 @@ namespace Nektar
if(previous_real_evl == -1.0)
{
previous_real_evl = m_leading_real_evl[0];
previous_imag_evl = m_leading_imag_evl[0];
return false;
}
......@@ -605,10 +606,10 @@ namespace Nektar
// See if real and imaginary growth have converged to with m_eigRelTol
if((fabs((m_leading_real_evl[0] - previous_real_evl)/m_leading_real_evl[0]) < m_eigRelTol))
{
previous_real_evl = m_leading_real_evl[0];
previous_imag_evl = m_leading_imag_evl[0];
if((fabs((m_leading_imag_evl[0] - previous_imag_evl)/m_leading_imag_evl[0]) < m_eigRelTol)||(fabs(m_leading_imag_evl[0]) < 1e-6))
{
previous_real_evl = m_leading_real_evl[0];
previous_imag_evl = m_leading_imag_evl[0];
return true;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment