Skip to content
Snippets Groups Projects
Commit 5b9c2ace authored by Vincent Luca's avatar Vincent Luca
Browse files

Added save K and M

parent 311ff6d4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment