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
fe9d0386
Commit
fe9d0386
authored
Jun 12, 2008
by
Thomas Witkowski
Browse files
* PardisoSolver bugfix
parent
59fe3dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/PardisoSolver.cc
View file @
fe9d0386
...
...
@@ -151,7 +151,7 @@ namespace AMDiS {
PARDISO
(
pt
,
&
maxfct
,
&
mnum
,
&
mtype
,
&
phase
,
&
n
,
a
,
ia
,
ja
,
&
idum
,
&
nRhs
,
iparm
,
&
msglvl
,
&
ddum
,
&
ddum
,
&
error
);
TEST_EXIT
(
error
==
0
)(
"Intel MKL Pardiso error during symbolic factorization: %d
\n
"
,
error
);
// Numerical factorization
...
...
@@ -171,13 +171,6 @@ namespace AMDiS {
TEST_EXIT
(
error
==
0
)(
"Intel MKL Pardiso error during solution: %d
\n
"
,
error
);
// Termination and release of memory
phase
=
-
1
;
PARDISO
(
pt
,
&
maxfct
,
&
mnum
,
&
mtype
,
&
phase
,
&
n
,
a
,
ia
,
ja
,
&
idum
,
&
nRhs
,
iparm
,
&
msglvl
,
&
ddum
,
&
ddum
,
&
error
);
// Copy and resort solution.
for
(
int
i
=
0
;
i
<
x
->
getSize
();
i
++
)
{
DOFVector
<
double
>::
Iterator
it
(
x
->
getDOFVector
(
i
),
USED_DOFS
);
...
...
@@ -198,12 +191,17 @@ namespace AMDiS {
MSG
(
"Residual: %e
\n
"
,
this
->
residual
);
// Termination and release of memory
phase
=
-
1
;
PARDISO
(
pt
,
&
maxfct
,
&
mnum
,
&
mtype
,
&
phase
,
&
n
,
a
,
ia
,
ja
,
&
idum
,
&
nRhs
,
iparm
,
&
msglvl
,
&
ddum
,
&
ddum
,
&
error
);
free
(
a
);
free
(
ja
);
free
(
ia
);
free
(
b
);
free
(
x
);
free
(
b
vec
);
free
(
x
vec
);
return
(
1
);
}
...
...
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