From bbdf6c1b93d6f3bc1f675e2c84e3a06851565e6d Mon Sep 17 00:00:00 2001 From: Pietro Incardona Date: Fri, 30 Nov 2018 16:38:59 +0100 Subject: [PATCH] Fixing code for EIGEN not detected --- src/FiniteDifference/eq_unit_test_3d.cpp | 2 +- src/Solvers/umfpack_solver.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FiniteDifference/eq_unit_test_3d.cpp b/src/FiniteDifference/eq_unit_test_3d.cpp index 9b96940..18665e6 100644 --- a/src/FiniteDifference/eq_unit_test_3d.cpp +++ b/src/FiniteDifference/eq_unit_test_3d.cpp @@ -44,7 +44,7 @@ struct lid_nn_3d_eigen typedef grid_dist_id<3,float,aggregate,CartDecomposition<3,float>> b_grid; //! type of SparseMatrix for the linear solver - typedef SparseMatrix SparseMatrix_type; + typedef SparseMatrix SparseMatrix_type; //! type of Vector for the linear solver typedef Vector Vector_type; diff --git a/src/Solvers/umfpack_solver.hpp b/src/Solvers/umfpack_solver.hpp index 7eabf65..de7e442 100644 --- a/src/Solvers/umfpack_solver.hpp +++ b/src/Solvers/umfpack_solver.hpp @@ -141,7 +141,7 @@ class umfpack_solver public: //! stub solve - template static Vector solve(const SparseMatrix & A, const Vector & b) + template static Vector solve(const SparseMatrix & A, const Vector & b) { std::cerr << __FILE__ << ":" << __LINE__ << " Error Umfpack only support double precision" << "/n"; } @@ -153,7 +153,7 @@ public: } //! stub solve - static Vector try_solve(SparseMatrix & A, const Vector & b, size_t opt = UMFPACK_NONE) + template static Vector try_solve(SparseMatrix & A, const Vector & b, size_t opt = UMFPACK_NONE) { std::cerr << __FILE__ << ":" << __LINE__ << " Error Umfpack only support double precision" << "/n"; } -- 2.22.0