From d6ea3867fdb4c40204dd2f52c7db140ed8cfd509 Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Tue, 18 Sep 2012 13:47:44 +0000 Subject: [PATCH] Revert "m" This reverts commit 7aa6020b8d915e54ffa4eae51ad45985f56dc34d. --- Solver/linearSystemPETSc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Solver/linearSystemPETSc.cpp b/Solver/linearSystemPETSc.cpp index cfadd327c0..dad32f0721 100644 --- a/Solver/linearSystemPETSc.cpp +++ b/Solver/linearSystemPETSc.cpp @@ -262,6 +262,8 @@ void linearSystemPETScBlockDouble::preAllocateEntries() void linearSystemPETScBlockDouble::zeroMatrix() { if (_isAllocated && _entriesPreAllocated) { + MatAssemblyBegin(_a, MAT_FINAL_ASSEMBLY); + MatAssemblyEnd(_a, MAT_FINAL_ASSEMBLY); MatZeroEntries(_a); } } @@ -269,6 +271,8 @@ void linearSystemPETScBlockDouble::zeroMatrix() void linearSystemPETScBlockDouble::zeroRightHandSide() { if (_isAllocated) { + VecAssemblyBegin(_b); + VecAssemblyEnd(_b); VecZeroEntries(_b); } } @@ -276,6 +280,8 @@ void linearSystemPETScBlockDouble::zeroRightHandSide() void linearSystemPETScBlockDouble::zeroSolution() { if (_isAllocated) { + VecAssemblyBegin(_x); + VecAssemblyEnd(_x); VecZeroEntries(_x); } } -- GitLab