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
bbdf6c1b
Commit
bbdf6c1b
authored
Nov 30, 2018
by
Pietro Incardona
Browse files
Fixing code for EIGEN not detected
parent
080e76bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FiniteDifference/eq_unit_test_3d.cpp
View file @
bbdf6c1b
...
...
@@ -44,7 +44,7 @@ struct lid_nn_3d_eigen
typedef
grid_dist_id
<
3
,
float
,
aggregate
<
float
[
3
],
float
>
,
CartDecomposition
<
3
,
float
>>
b_grid
;
//! type of SparseMatrix for the linear solver
typedef
SparseMatrix
<
double
,
int
>
SparseMatrix_type
;
typedef
SparseMatrix
<
double
,
int
,
EIGEN_BASE
>
SparseMatrix_type
;
//! type of Vector for the linear solver
typedef
Vector
<
double
>
Vector_type
;
...
...
src/Solvers/umfpack_solver.hpp
View file @
bbdf6c1b
...
...
@@ -141,7 +141,7 @@ class umfpack_solver
public:
//! stub solve
template
<
typename
impl
>
static
Vector
<
T
>
solve
(
const
SparseMatrix
<
T
,
impl
>
&
A
,
const
Vector
<
T
>
&
b
)
template
<
typename
impl
,
typename
id_type
>
static
Vector
<
T
>
solve
(
const
SparseMatrix
<
T
,
id_type
,
impl
>
&
A
,
const
Vector
<
T
,
impl
>
&
b
)
{
std
::
cerr
<<
__FILE__
<<
":"
<<
__LINE__
<<
" Error Umfpack only support double precision"
<<
"/n"
;
}
...
...
@@ -153,7 +153,7 @@ public:
}
//! 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
)
template
<
unsigned
int
impl
,
typename
id_type
>
static
Vector
<
T
,
impl
>
try_solve
(
SparseMatrix
<
T
,
id_type
,
impl
>
&
A
,
const
Vector
<
T
,
impl
>
&
b
,
size_t
opt
=
UMFPACK_NONE
)
{
std
::
cerr
<<
__FILE__
<<
":"
<<
__LINE__
<<
" Error Umfpack only support double precision"
<<
"/n"
;
}
...
...
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