From 1d44595ed7871d67a6fde40de89a9bdd1440c428 Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Wed, 23 Oct 2013 11:29:43 +0000 Subject: [PATCH] dg : fix explicit with dofManager --- Solver/linearSystemPETSc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Solver/linearSystemPETSc.cpp b/Solver/linearSystemPETSc.cpp index 2516b5de5d..822be8e8c0 100644 --- a/Solver/linearSystemPETSc.cpp +++ b/Solver/linearSystemPETSc.cpp @@ -70,6 +70,8 @@ template<> void linearSystemPETSc<fullMatrix<double> >::addToRightHandSide(int row, const fullMatrix<double> &val) { + if (!_entriesPreAllocated) + preAllocateEntries(); int blockSize; _try(MatGetBlockSize(_a, &blockSize)); for (int ii = 0; ii < blockSize; ii++) { -- GitLab