From: Matthias Maier Date: Tue, 16 Dec 2014 01:44:37 +0000 (+0100) Subject: sort output of arpack/step-36_ar X-Git-Tag: v8.2.0-rc1~12^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68659b7f9c5758b029a48704971e059558a00fd6;p=dealii.git sort output of arpack/step-36_ar --- diff --git a/tests/arpack/step-36_ar.cc b/tests/arpack/step-36_ar.cc index 416330c2f8..1b429a8cdd 100644 --- a/tests/arpack/step-36_ar.cc +++ b/tests/arpack/step-36_ar.cc @@ -51,6 +51,7 @@ #include #include +#include namespace Step36 { @@ -264,6 +265,10 @@ namespace Step36 } + bool my_compare(std::complex a, std::complex b) + { + return a.real() < b.real(); + } template void EigenvalueProblem::run () @@ -274,6 +279,8 @@ namespace Step36 const std::pair res = solve (); + std::sort(eigenvalues.begin(), eigenvalues.end(), my_compare); + for (unsigned int i=0; i