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

sorry linearSystem preallocation was broken

parent 53bc9ee2
No related branches found
No related tags found
No related merge requests found
...@@ -302,6 +302,7 @@ class dofManager{ ...@@ -302,6 +302,7 @@ class dofManager{
inline void insertInSparsityPattern(const Dof &R, const Dof &C) inline void insertInSparsityPattern(const Dof &R, const Dof &C)
{ {
if (_isParallel && !_parallelFinalized) _parallelFinalize(); if (_isParallel && !_parallelFinalized) _parallelFinalize();
if (!_current->isAllocated()) _current->allocate (sizeOfR());
std::map<Dof, int>::iterator itR = unknown.find(R); std::map<Dof, int>::iterator itR = unknown.find(R);
if (itR != unknown.end()){ if (itR != unknown.end()){
std::map<Dof, int>::iterator itC = unknown.find(C); std::map<Dof, int>::iterator itC = unknown.find(C);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment