Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argupta
openfpm_numerics
Commits
080e76bf
Commit
080e76bf
authored
Nov 30, 2018
by
Pietro Incardona
Browse files
Fixing umfpack when EIGEN is not present
parent
3f2f657b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
080e76bf
...
...
@@ -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
}
)
...
...
src/Solvers/umfpack_solver.hpp
View file @
080e76bf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment