Fix #ifdef guards around METIS usage in EigenSparse backend and tests

Change-Id: Idd1e0b7b1b2df2d402431b107dee0fa8e0fd58f5
This commit is contained in:
Alex Stewart
2022-06-22 19:05:30 +01:00
parent 0c88301e66
commit 11e6376675
4 changed files with 22 additions and 14 deletions
+4
View File
@@ -213,6 +213,10 @@ bool TrustRegionOptionsAreValid(const Solver::Options& options, string* error) {
*error = StringPrintf(
"Can't use NESDIS with SUITE_SPARSE because SuiteSparse was "
"compiled without support for Metis.");
} else if (options.sparse_linear_algebra_library_type == EIGEN_SPARSE) {
*error = StringPrintf(
"Can't use NESDIS with EIGEN_SPARSE because Ceres was "
"compiled without support for Metis.");
} else {
*error = StringPrintf(
"Can't use NESDIS with "