Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
2969c018
Commit
2969c018
authored
Jun 01, 2012
by
Thomas Witkowski
Browse files
Added bddc_download_solution to bddcml code.
parent
5c44035b
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/BddcMlSolver.cc
View file @
2969c018
...
...
@@ -199,7 +199,7 @@ namespace AMDiS {
double
rhs
[
ndofs
];
for
(
int
i
=
0
;
i
<
nComponents
;
i
++
)
{
DOFVector
<
double
>&
dofvec
=
*
(
rhsVec
->
getDOFVector
(
i
));
for
(
int
j
=
0
;
j
<
n
dof
s
;
j
++
)
for
(
int
j
=
0
;
j
<
n
nod
s
;
j
++
)
rhs
[
j
*
nComponents
+
i
]
=
dofvec
[
j
];
}
...
...
@@ -340,7 +340,7 @@ namespace AMDiS {
int
method
=
1
;
double
tol
=
1.e-6
;
int
maxit
=
10
00
;
int
maxit
=
10
;
int
ndecrmax
=
30
;
int
num_iter
=
0
;
int
converged_reason
=
0
;
...
...
@@ -358,6 +358,14 @@ namespace AMDiS {
MSG
(
"BDDCML converged reason: %d within %d iterations
\n
"
,
converged_reason
,
num_iter
);
bddcml_download_local_solution
(
&
isub
,
rhs
,
&
ndofs
);
for
(
int
i
=
0
;
i
<
nComponents
;
i
++
)
{
DOFVector
<
double
>&
dofvec
=
*
(
vec
.
getDOFVector
(
i
));
for
(
int
j
=
0
;
j
<
nnods
;
j
++
)
dofvec
[
j
]
=
rhs
[
j
*
nComponents
+
i
];
}
bddcml_finalize
();
}
...
...
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