Skip to content
Snippets Groups Projects
Commit 080e76bf authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing umfpack when EIGEN is not present

parent 3f2f657b
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ if(PETSC_FOUND)
target_include_directories (numerics PUBLIC ${PETSC_INCLUDES})
target_link_libraries(numerics ${PETSC_LIBRARIES})
endif()
message("CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC ${SUITESPARSE_LIBRARIES}")
if(SUITESPARSE_FOUND)
target_include_directories (numerics PUBLIC ${SUITESPARSE_INCLUDE_DIRS})
target_link_libraries(numerics ${SUITESPARSE_LIBRARIES})
......
......@@ -151,6 +151,12 @@ public:
{
std::cerr << __FILE__ << ":" << __LINE__ << " Error Umfpack only support double precision" << "/n";
}
//! stub solve
static Vector<double,EIGEN_BASE> try_solve(SparseMatrix<double,int,EIGEN_BASE> & A, const Vector<double,EIGEN_BASE> & b, size_t opt = UMFPACK_NONE)
{
std::cerr << __FILE__ << ":" << __LINE__ << " Error Umfpack only support double precision" << "/n";
}
};
//! stub when library compiled without eigen
......@@ -175,6 +181,12 @@ public:
{
std::cerr << __FILE__ << ":" << __LINE__ << " Error in order to use umfpack you must compile OpenFPM with linear algebra support" << "/n";
}
//! stub solve
static Vector<double,EIGEN_BASE> try_solve(SparseMatrix<double,int,EIGEN_BASE> & A, const Vector<double,EIGEN_BASE> & b, size_t opt = UMFPACK_NONE)
{
std::cerr << __FILE__ << ":" << __LINE__ << " Error in order to use umfpack you must compile OpenFPM with linear algebra support" << "/n";
}
};
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment