Skip to content

MCMGMapper: use `std::function<bool(GeometryType, int)>` instead of custom layout classes

Ansgar Burchardt requested to merge feature/improve-mcmgmapper into master

This merge requests changes MCMGMapper to use a std::function object instead of template classes with a contains() method. It makes it easier to use the mapper with custom layouts: one just has to write a lambda function to indicate which geometry types should be included in the mapper.

After the next DUNE release, the now deprecated second template parameter of MCMGMapper can be removed, cleaning up the interface a bit more.

Closes: #42 (closed)

Merge request reports