Skip to content
Snippets Groups Projects
Commit a405bdc8 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

constraints(): simplify

parent e8bfdc20
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,7 @@ namespace PPS {
}
template<typename Pred, typename GFS, typename CG>
void constraints(const Pred& isDirichlet, const GFS& gfs, CG& cg,
const bool verbose = false)
void constraints(const Pred& isDirichlet, const GFS& gfs, CG& cg)
{
// clear global constraints
cg.clear();
......@@ -67,18 +66,15 @@ namespace PPS {
std::set<std::size_t> local_constraints;
// iterate over intersections and call metaprogram
unsigned int intersection_index = 0;
for (const auto& intersection : intersections(es,element))
{
if(intersection.boundary())
{
// iterate over boundary, need intersection iterator
if (lfs_e.size())
boundary(isDirichlet, intersection,
lfs_e.finiteElement().localCoefficients(),
local_constraints);
boundary(isDirichlet, intersection,
lfs_e.finiteElement().localCoefficients(),
local_constraints);
}
++intersection_index;
}
for(auto i : local_constraints)
......
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