Skip to content
Snippets Groups Projects
Commit d6ea3867 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

Revert "m"

This reverts commit 7aa6020b8d915e54ffa4eae51ad45985f56dc34d.
parent a778c827
No related branches found
No related tags found
No related merge requests found
...@@ -262,6 +262,8 @@ void linearSystemPETScBlockDouble::preAllocateEntries() ...@@ -262,6 +262,8 @@ void linearSystemPETScBlockDouble::preAllocateEntries()
void linearSystemPETScBlockDouble::zeroMatrix() void linearSystemPETScBlockDouble::zeroMatrix()
{ {
if (_isAllocated && _entriesPreAllocated) { if (_isAllocated && _entriesPreAllocated) {
MatAssemblyBegin(_a, MAT_FINAL_ASSEMBLY);
MatAssemblyEnd(_a, MAT_FINAL_ASSEMBLY);
MatZeroEntries(_a); MatZeroEntries(_a);
} }
} }
...@@ -269,6 +271,8 @@ void linearSystemPETScBlockDouble::zeroMatrix() ...@@ -269,6 +271,8 @@ void linearSystemPETScBlockDouble::zeroMatrix()
void linearSystemPETScBlockDouble::zeroRightHandSide() void linearSystemPETScBlockDouble::zeroRightHandSide()
{ {
if (_isAllocated) { if (_isAllocated) {
VecAssemblyBegin(_b);
VecAssemblyEnd(_b);
VecZeroEntries(_b); VecZeroEntries(_b);
} }
} }
...@@ -276,6 +280,8 @@ void linearSystemPETScBlockDouble::zeroRightHandSide() ...@@ -276,6 +280,8 @@ void linearSystemPETScBlockDouble::zeroRightHandSide()
void linearSystemPETScBlockDouble::zeroSolution() void linearSystemPETScBlockDouble::zeroSolution()
{ {
if (_isAllocated) { if (_isAllocated) {
VecAssemblyBegin(_x);
VecAssemblyEnd(_x);
VecZeroEntries(_x); VecZeroEntries(_x);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment