Commit 6fdea22a authored by Thomas Witkowski's avatar Thomas Witkowski

Add nullspace support on the level of PETSc solver object.

parent 6f7099bc
......@@ -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;
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment