Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_numerics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_numerics
Commits
bbdf6c1b
Commit
bbdf6c1b
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing code for EIGEN not detected
parent
080e76bf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/FiniteDifference/eq_unit_test_3d.cpp
+1
-1
1 addition, 1 deletion
src/FiniteDifference/eq_unit_test_3d.cpp
src/Solvers/umfpack_solver.hpp
+2
-2
2 additions, 2 deletions
src/Solvers/umfpack_solver.hpp
with
3 additions
and
3 deletions
src/FiniteDifference/eq_unit_test_3d.cpp
+
1
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
src/Solvers/umfpack_solver.hpp
+
2
−
2
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"
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment