Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
6cf1994a
Commit
6cf1994a
authored
Jun 17, 2015
by
Praetorius, Simon
Browse files
mtl4 included in svn tree and patch for umfpack added
parent
a28b315c
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/solver/UmfPackSolver.h
View file @
6cf1994a
...
...
@@ -28,7 +28,7 @@
#include
<iostream>
#include
<boost/numeric/mtl/operation/two_norm.hpp>
#include
"solver/itl
/umfpack
2
_solve.hpp
"
#include
<boost/numeric/mtl/interface
/umfpack_solve.hpp
>
#include
"solver/LinearSolver.h"
namespace
AMDiS
{
...
...
@@ -60,8 +60,8 @@ namespace AMDiS {
}
try
{
solver
=
new
mtl
::
matrix
::
umfpack
2
::
solver
<
MatrixType
>
(
fullMatrix
,
symmetric_strategy
,
alloc_init
);
}
catch
(
mtl
::
matrix
::
umfpack
2
::
error
&
e
)
{
solver
=
new
mtl
::
matrix
::
umfpack
::
solver
<
MatrixType
>
(
fullMatrix
,
symmetric_strategy
,
alloc_init
);
}
catch
(
mtl
::
matrix
::
umfpack
::
error
&
e
)
{
ERROR_EXIT
(
"UMFPACK_ERROR(factorize, %d) = %s
\n
"
,
e
.
code
,
e
.
what
());
}
}
...
...
@@ -75,7 +75,7 @@ namespace AMDiS {
int
code
=
0
;
try
{
code
=
(
*
solver
)(
x
,
b
);
}
catch
(
mtl
::
matrix
::
umfpack
2
::
error
&
e
)
{
}
catch
(
mtl
::
matrix
::
umfpack
::
error
&
e
)
{
ERROR_EXIT
(
"UMFPACK_ERROR(solve, %d) = %s
\n
"
,
e
.
code
,
e
.
what
());
}
...
...
@@ -103,7 +103,7 @@ namespace AMDiS {
LinearSolverInterface
&
oem
;
private:
mtl
::
matrix
::
umfpack
2
::
solver
<
MatrixType
>
*
solver
;
mtl
::
matrix
::
umfpack
::
solver
<
MatrixType
>
*
solver
;
int
store_symbolic
;
...
...
AMDiS/src/solver/itl/umfpack2_solve.hpp
View file @
6cf1994a
...
...
@@ -37,7 +37,7 @@ extern "C" {
namespace
mtl
{
namespace
matrix
{
/// Namespace for Umfpack solver
namespace
umfpack
2
{
namespace
umfpack
{
// conversion for value_type needed if not double or complex<double> (where possible)
template
<
typename
Value
>
struct
value
{};
...
...
@@ -556,7 +556,7 @@ namespace mtl { namespace matrix {
template
<
typename
Value
,
typename
Parameters
,
typename
VectorX
,
typename
VectorB
>
int
umfpack2_solve
(
const
compressed2D
<
Value
,
Parameters
>&
A
,
VectorX
&
x
,
const
VectorB
&
b
)
{
umfpack
2
::
solver
<
compressed2D
<
Value
,
Parameters
>
>
solver
(
A
);
umfpack
::
solver
<
compressed2D
<
Value
,
Parameters
>
>
solver
(
A
);
return
solver
(
x
,
b
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment