Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_numerics
Commits
bbdf6c1b
Commit
bbdf6c1b
authored
Nov 30, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing code for EIGEN not detected
parent
080e76bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/FiniteDifference/eq_unit_test_3d.cpp
src/FiniteDifference/eq_unit_test_3d.cpp
+1
-1
src/Solvers/umfpack_solver.hpp
src/Solvers/umfpack_solver.hpp
+2
-2
No files found.
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