From 5b9c2ace10c5265e2c3f8d343d697f51fadfdce7 Mon Sep 17 00:00:00 2001 From: Vincent Luca <vincent.luca@ulg.ac.be> Date: Wed, 9 Oct 2013 14:01:20 +0000 Subject: [PATCH] Added save K and M --- Solver/linearSystemPETSc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solver/linearSystemPETSc.hpp b/Solver/linearSystemPETSc.hpp index 02f6d48a9f..f271188419 100644 --- a/Solver/linearSystemPETSc.hpp +++ b/Solver/linearSystemPETSc.hpp @@ -103,7 +103,7 @@ void linearSystemPETSc<scalar>::preAllocateEntries() int blockSize = _getBlockSizeFromParameters(); std::vector<int> nByRowDiag (_localSize), nByRowOffDiag (_localSize); if (_sparsity.getNbRows() == 0) { - PetscInt prealloc = 300; + PetscInt prealloc = 500; PetscBool set; PetscOptionsGetInt(PETSC_NULL, "-petsc_prealloc", &prealloc, &set); prealloc = std::min(prealloc, _localSize); -- GitLab