[BUG FIX] arpackmm: command line sanity checks.

This commit is contained in:
Franck HOUSSEN
2021-10-04 22:50:56 +02:00
parent e3a1f97f2a
commit 3b5dab9c93
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -15,7 +15,9 @@ arpack-ng - 3.9.0
* use CMAKE_INSTALL_FULL_<dir> in arpack.pc
[ Franck Houssen ]
* arpackmm: command line bug fix.
* arpackmm: restart bug fix.
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 07 Dec 2020 11:37:40 +0100
arpack-ng - 3.8.0
+7
View File
@@ -316,6 +316,13 @@ class options {
}
}
// Sanity checks.
if (!stdPb && fileB.empty()) {
cerr << "Error: generalized problem without B matrix" << endl;
return usage();
}
return 0;
};