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
Backofen, Rainer
amdis
Commits
d00516d6
Commit
d00516d6
authored
May 16, 2012
by
Thomas Witkowski
Browse files
Small bugfix
parent
a125ff82
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolver.cc
View file @
d00516d6
...
...
@@ -43,7 +43,11 @@ namespace AMDiS {
{
interiorMap
=
interiorDofs
;
coarseSpaceMap
=
coarseDofs
;
}
void
PetscSolver
::
updateSubdomainData
()
{
if
(
mpiCommLocal
.
Get_size
()
==
1
)
{
rStartInterior
=
0
;
nGlobalOverallInterior
=
interiorMap
->
getOverallDofs
();
...
...
@@ -63,7 +67,7 @@ namespace AMDiS {
}
}
void
PetscSolver
::
solve
(
Vec
&
rhs
,
Vec
&
sol
)
{
FUNCNAME
(
"PetscSolver::solve()"
);
...
...
AMDiS/src/parallel/PetscSolver.h
View file @
d00516d6
...
...
@@ -202,6 +202,8 @@ namespace AMDiS {
/// Returns a vector with the FE spaces of all components of a system vector.
vector
<
const
FiniteElemSpace
*>
getFeSpaces
(
SystemVector
*
vec
);
void
updateSubdomainData
();
protected:
MeshDistributor
*
meshDistributor
;
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
d00516d6
...
...
@@ -22,6 +22,7 @@ namespace AMDiS {
FUNCNAME
(
"PetscSolverGlobalMatrix::fillPetscMatrix()"
);
if
(
coarseSpaceMap
!=
NULL
)
{
updateSubdomainData
();
fillPetscMatrixWithCoarseSpace
(
mat
);
return
;
}
...
...
@@ -53,6 +54,7 @@ namespace AMDiS {
o_nnz
=
NULL
;
}
updateSubdomainData
();
createPetscNnzStructure
(
mat
);
lastMeshNnz
=
meshDistributor
->
getLastMeshChangeIndex
();
}
...
...
@@ -128,8 +130,6 @@ namespace AMDiS {
int
nRowsOverallInterior
=
interiorMap
->
getOverallDofs
();
if
(
subdomainLevel
==
0
)
{
nGlobalOverallInterior
=
nRowsOverallInterior
;
MatCreateSeqAIJ
(
mpiCommLocal
,
nRowsRankInterior
,
nRowsRankInterior
,
60
,
PETSC_NULL
,
&
matIntInt
);
}
else
{
...
...
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