diff --git a/AMDiS/src/io/MacroInfo.cc b/AMDiS/src/io/MacroInfo.cc
index 1ba826b59b768020954a3b0532836668e243025e..4367338e3bb8979b3822f5956202b649b3fa6ffc 100644
--- a/AMDiS/src/io/MacroInfo.cc
+++ b/AMDiS/src/io/MacroInfo.cc
@@ -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;
diff --git a/AMDiS/src/parallel/PetscSolver.h b/AMDiS/src/parallel/PetscSolver.h
index dabfeb7cd79863e0edf660a9dd90648adf307ba1..57f78d2883c9b70ff26cd9a58c5598611934cd8c 100644
--- a/AMDiS/src/parallel/PetscSolver.h
+++ b/AMDiS/src/parallel/PetscSolver.h
@@ -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)
     {