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
iwr
amdis
Commits
99bb590e
Commit
99bb590e
authored
Oct 23, 2012
by
Thomas Witkowski
Browse files
bo eh, part iii
parent
5bc4d629
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolverFeti.cc
View file @
99bb590e
...
...
@@ -1281,12 +1281,12 @@ namespace AMDiS {
// === Create mass matrix solver ===
if
(
!
massMatrixSolver
)
{
MSG
(
"START CREATE MASS MATRIX!
\n
"
);
ParallelDofMapping
*
massMapping
=
new
ParallelDofMapping
(
COMPONENT_WISE
);
massMapping
->
init
(
meshDistributor
->
getMeshLevelData
(),
pressureFeSpace
,
pressureFeSpace
);
massMapping
->
setDofComm
(
meshDistributor
->
getDofComm
());
massMapping
->
setMpiComm
(
meshDistributor
->
getMeshLevelData
().
getMpiComm
(
0
),
0
);
massMapping
->
setComputeMatIndex
(
true
);
(
*
massMapping
)[
0
]
=
interfaceDofMap
[
pressureComponent
];
massMapping
->
update
();
...
...
@@ -1302,9 +1302,7 @@ namespace AMDiS {
mpiCommGlobal
,
mpiCommLocal
);
massMatrixSolver
->
setDofMapping
(
massMapping
);
MSG
(
"START ASM ===
\n
"
);
massMatrixSolver
->
fillPetscMatrix
(
&
massMatrix
);
MSG
(
"END ASM ===
\n
"
);
int
r
,
c
;
MatGetSize
(
massMatrixSolver
->
getMatInterior
(),
&
r
,
&
c
);
...
...
@@ -1313,7 +1311,6 @@ namespace AMDiS {
MSG
(
"MASS MAT INFO: size = %d x %d nnz = %d
\n
"
,
r
,
c
,
static_cast
<
int
>
(
info
.
nz_used
));
MSG
(
"END CREATE MASS MATRIX!
\n
"
);
fetiInterfaceLumpedPreconData
.
ksp_mass
=
massMatrixSolver
->
getSolver
();
...
...
Write
Preview
Supports
Markdown
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