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
bd488753
Commit
bd488753
authored
Feb 20, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibility to remove null space of rhs vectors in parallel computations.
parent
430cb57b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
+7
-0
AMDiS/src/parallel/PetscSolverGlobalMatrix.h
AMDiS/src/parallel/PetscSolverGlobalMatrix.h
+7
-1
No files found.
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
bd488753
...
@@ -151,6 +151,13 @@ namespace AMDiS {
...
@@ -151,6 +151,13 @@ namespace AMDiS {
VecAssemblyBegin
(
petscRhsVec
);
VecAssemblyBegin
(
petscRhsVec
);
VecAssemblyEnd
(
petscRhsVec
);
VecAssemblyEnd
(
petscRhsVec
);
if
(
removeRhsNullSpace
)
{
MatNullSpace
sp
;
MatNullSpaceCreate
(
PETSC_COMM_WORLD
,
PETSC_TRUE
,
0
,
PETSC_NULL
,
&
sp
);
MatNullSpaceRemove
(
sp
,
petscRhsVec
,
PETSC_NULL
);
MatNullSpaceDestroy
(
&
sp
);
}
}
}
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.h
View file @
bd488753
...
@@ -88,11 +88,14 @@ namespace AMDiS {
...
@@ -88,11 +88,14 @@ namespace AMDiS {
o_nnz
(
NULL
),
o_nnz
(
NULL
),
lastMeshNnz
(
0
),
lastMeshNnz
(
0
),
zeroStartVector
(
false
),
zeroStartVector
(
false
),
alwaysCreateNnzStructure
(
false
)
alwaysCreateNnzStructure
(
false
),
removeRhsNullSpace
(
false
)
{
{
Parameters
::
get
(
"parallel->use zero start vector"
,
zeroStartVector
);
Parameters
::
get
(
"parallel->use zero start vector"
,
zeroStartVector
);
Parameters
::
get
(
"parallel->always create nnz structure"
,
Parameters
::
get
(
"parallel->always create nnz structure"
,
alwaysCreateNnzStructure
);
alwaysCreateNnzStructure
);
Parameters
::
get
(
"parallel->remove rhs null space"
,
removeRhsNullSpace
);
}
}
void
fillPetscMatrix
(
Matrix
<
DOFMatrix
*>
*
mat
);
void
fillPetscMatrix
(
Matrix
<
DOFMatrix
*>
*
mat
);
...
@@ -141,6 +144,9 @@ namespace AMDiS {
...
@@ -141,6 +144,9 @@ namespace AMDiS {
/// Mapping from global DOF indices to global matrix indices under
/// Mapping from global DOF indices to global matrix indices under
/// consideration of possibly multiple components.
/// consideration of possibly multiple components.
DofToMatIndex
dofToMatIndex
;
DofToMatIndex
dofToMatIndex
;
/// If true, the constant null space is projected out of the RHS vector.
bool
removeRhsNullSpace
;
};
};
...
...
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