Skip to content
Snippets Groups Projects
Unverified Commit ec93619e authored by René Fritze's avatar René Fritze
Browse files

[spaces/cg] potential speedup in dirichlet dof index discovery

parent 85177064
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,8 @@ public: ...@@ -128,6 +128,8 @@ public:
DUNE_THROW(NotImplemented, "Does not work for higher dimensions"); DUNE_THROW(NotImplemented, "Does not work for higher dimensions");
// check // check
assert(this->grid_view().indexSet().contains(entity)); assert(this->grid_view().indexSet().contains(entity));
if(!entity.hasBoundaryIntersections())
return std::set<size_t>();
// prepare // prepare
std::set<size_t> localDirichletDofs; std::set<size_t> localDirichletDofs;
std::vector<DomainType> dirichlet_vertices; std::vector<DomainType> dirichlet_vertices;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment