Change eigenvalue ordering to be ascending value rather than ascending magnitude

This commit is contained in:
Henry
2012-01-03 16:42:53 +00:00
parent e1c876f59a
commit 6b148718cc
2 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -116,7 +116,7 @@ vector2D eigenValues(const tensor2D& t)
}
// Sort the eigenvalues into ascending order
if (mag(i) > mag(ii))
if (i > ii)
{
Swap(i, ii);
}