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
6fdea22a
Commit
6fdea22a
authored
Jul 31, 2012
by
Thomas Witkowski
Browse files
Add nullspace support on the level of PETSc solver object.
parent
6f7099bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/io/MacroInfo.cc
View file @
6fdea22a
...
...
@@ -167,7 +167,8 @@ namespace AMDiS {
TEST_EXIT
(
i_key
>=
0
)
(
"macro file %s must not contain key %s on line %d
\n
"
,
filename
.
c_str
(),
key
,
line_no
);
TEST_EXIT
(
!
key_def
[
i_key
])(
"key %s defined second time on line %d in file %s
\n
"
);
TEST_EXIT
(
!
key_def
[
i_key
])
(
"key %s defined second time on line %d in file %s
\n
"
);
sort_key
[
n_keys
++
]
=
i_key
;
key_def
[
i_key
]
=
true
;
...
...
AMDiS/src/parallel/PetscSolver.h
View file @
6fdea22a
...
...
@@ -127,6 +127,19 @@ namespace AMDiS {
nullspace
.
push_back
(
vec
);
}
/// Sets the nullspace to be constant for some specific components.
void
setConstantNullspace
(
vector
<
int
>
&
components
)
{
constNullspaceComponent
=
components
;
}
/// Sets the nullspace to be constant for a specific component.
void
setConstantNullspace
(
int
component
)
{
constNullspaceComponent
.
clear
();
constNullspaceComponent
.
push_back
(
component
);
}
inline
bool
isCoarseSpace
(
const
FiniteElemSpace
*
feSpace
,
DegreeOfFreedom
dof
)
{
...
...
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