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

m

parent caf73d8f
No related branches found
No related tags found
No related merge requests found
...@@ -262,8 +262,6 @@ void linearSystemPETScBlockDouble::preAllocateEntries() ...@@ -262,8 +262,6 @@ 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);
} }
} }
...@@ -271,8 +269,6 @@ void linearSystemPETScBlockDouble::zeroMatrix() ...@@ -271,8 +269,6 @@ void linearSystemPETScBlockDouble::zeroMatrix()
void linearSystemPETScBlockDouble::zeroRightHandSide() void linearSystemPETScBlockDouble::zeroRightHandSide()
{ {
if (_isAllocated) { if (_isAllocated) {
VecAssemblyBegin(_b);
VecAssemblyEnd(_b);
VecZeroEntries(_b); VecZeroEntries(_b);
} }
} }
...@@ -280,8 +276,6 @@ void linearSystemPETScBlockDouble::zeroRightHandSide() ...@@ -280,8 +276,6 @@ 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