From 0c655a68cdf8a9c2558c1a7d0b485c242075a4f0 Mon Sep 17 00:00:00 2001 From: Franck HOUSSEN Date: Sat, 9 Jul 2022 12:30:23 +0200 Subject: [PATCH] arpackSolver: fix error messages. --- CHANGES | 1 + EXAMPLES/MATRIX_MARKET/arpackSolver.hpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGES b/CHANGES index e513861da..a15d979dd 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ arpack-ng - 3.9.0 * arpackmm: command line bug fix. * arpackmm: restart bug fix. * pyarpack: fix compilation warning, test on macos and latest boost-python (1.79). +* arpackSolver: fix error messages. [ Haoyang Liu ] * CMake: minimum required version changed to 3.0 diff --git a/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp b/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp index 3a596c8c9..d8fc31ff0 100644 --- a/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp +++ b/EXAMPLES/MATRIX_MARKET/arpackSolver.hpp @@ -517,8 +517,8 @@ class arpackSolver { sseupd_c(rvec, howmny, select, d, z, ldz, sigmaReal, bMat, nbDim, which, nbEV, tol, resid, nbCV, v, ldv, iparam, ipntr, workd, workl, lworkl, &info); - if (info == -14) cerr << "Error: dseupd - KO: dsaupd did not find any eigenvalues to sufficient accuracy" << endl; - if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: dseupd - KO with info " << info << endl; return 1;} + if (info == -14) cerr << "Error: sseupd - KO: ssaupd did not find any eigenvalues to sufficient accuracy" << endl; + if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: sseupd - KO with info " << info << endl; return 1;} spectrum(d, z, nbDim, iparam); @@ -531,8 +531,8 @@ class arpackSolver { sneupd_c(rvec, howmny, select, dr, di, z, ldz, sigmaReal, sigmaImag, workev, bMat, nbDim, which, nbEV, tol, resid, nbCV, v, ldv, iparam, ipntr, workd, workl, lworkl, &info); - if (info == -14) cerr << "Error: dneupd - KO: [dz]naupd did not find any eigenvalues to sufficient accuracy" << endl; - if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: dneupd - KO with info " << info << endl; return 1;} + if (info == -14) cerr << "Error: sneupd - KO: snaupd did not find any eigenvalues to sufficient accuracy" << endl; + if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: sneupd - KO with info " << info << endl; return 1;} halfSpectrum(dr, di, z, nbDim, iparam); @@ -568,7 +568,7 @@ class arpackSolver { dneupd_c(rvec, howmny, select, dr, di, z, ldz, sigmaReal, sigmaImag, workev, bMat, nbDim, which, nbEV, tol, resid, nbCV, v, ldv, iparam, ipntr, workd, workl, lworkl, &info); - if (info == -14) cerr << "Error: dneupd - KO: [dz]naupd did not find any eigenvalues to sufficient accuracy" << endl; + if (info == -14) cerr << "Error: dneupd - KO: dnaupd did not find any eigenvalues to sufficient accuracy" << endl; if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: dneupd - KO with info " << info << endl; return 1;} halfSpectrum(dr, di, z, nbDim, iparam); @@ -594,8 +594,8 @@ class arpackSolver { bMat, nbDim, which, nbEV, tol, reinterpret_cast(resid), nbCV, reinterpret_cast(v), ldv, iparam, ipntr, reinterpret_cast(workd), reinterpret_cast(workl), lworkl, rwork, &info); - if (info == -14) cerr << "Error: zneupd - KO: dsaupd did not find any eigenvalues to sufficient accuracy" << endl; - if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: zneupd - KO with info " << info << endl; return 1;} + if (info == -14) cerr << "Error: cneupd - KO: cnaupd did not find any eigenvalues to sufficient accuracy" << endl; + if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: cneupd - KO with info " << info << endl; return 1;} spectrum(d, z, nbDim, iparam); @@ -618,7 +618,7 @@ class arpackSolver { bMat, nbDim, which, nbEV, tol, reinterpret_cast(resid), nbCV, reinterpret_cast(v), ldv, iparam, ipntr, reinterpret_cast(workd), reinterpret_cast(workl), lworkl, rwork, &info); - if (info == -14) cerr << "Error: zneupd - KO: dsaupd did not find any eigenvalues to sufficient accuracy" << endl; + if (info == -14) cerr << "Error: zneupd - KO: znaupd did not find any eigenvalues to sufficient accuracy" << endl; if (info < 0 && info != -14 /*-14: don't break*/) {cerr << "Error: zneupd - KO with info " << info << endl; return 1;} spectrum(d, z, nbDim, iparam);