From d1846222f86f63c30427113f88ea4e10bb5ae98d Mon Sep 17 00:00:00 2001 From: Thomas Witkowski Date: Tue, 3 Jul 2012 13:20:20 +0000 Subject: [PATCH] Fix THE BUG... --- AMDiS/src/parallel/PetscSolverGlobalMatrix.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc index 91681988..dc2e0a97 100644 --- a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc +++ b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc @@ -404,7 +404,6 @@ namespace AMDiS { MatNullSpace matNullspace; Vec nullspaceBasis; - if (nullspace.size() > 0 || hasConstantNullspace || constNullspaceComponent.size() > 0) { @@ -456,7 +455,6 @@ namespace AMDiS { ("No nullspace provided that should be removed from rhs!\n"); } - // PETSc. solve(rhsInterior, petscSolVec); @@ -482,6 +480,10 @@ namespace AMDiS { } VecRestoreArray(petscSolVec, &vecPointer); + + // === Synchronize DOFs at common DOFs, i.e., DOFs that correspond to === + // === more than one partition. === + meshDistributor->synchVector(vec); } -- GitLab