Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
2969c018
Commit
2969c018
authored
Jun 01, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added bddc_download_solution to bddcml code.
parent
5c44035b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
AMDiS/src/parallel/BddcMlSolver.cc
AMDiS/src/parallel/BddcMlSolver.cc
+10
-2
No files found.
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