diff --git a/Solver/dofManager.h b/Solver/dofManager.h index c85d0f53b9234b0f48a609c8427920ca9d383437..6ba920f3da6b664efc3c7d80975704ba1f621bcc 100644 --- a/Solver/dofManager.h +++ b/Solver/dofManager.h @@ -84,14 +84,14 @@ class dofManager{ } inline void numberDof(long int ent, int type) { - Dof key(ent, type); - if(fixed.find(key) != fixed.end()) return; - // if (constraints.find(key) != constraints.end()) return; - std::map<Dof, int> :: iterator it = unknown.find(key); - if (it == unknown.end()){ - unsigned int size = unknown.size(); - unknown[key] = size; - } + Dof key(ent, type); + if(fixed.find(key) != fixed.end()) return; + // if (constraints.find(key) != constraints.end()) return; + std::map<Dof, int> :: iterator it = unknown.find(key); + if (it == unknown.end()){ + unsigned int size = unknown.size(); + unknown[key] = size; + } } inline void numberVertex(MVertex*v, int iComp, int iField) {