]> https://gitweb.dealii.org/ - dealii.git/commit
Reduce code duplication.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 14:06:40 +0000 (08:06 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 14:06:40 +0000 (08:06 -0600)
commite01e2b8371e7afb54368997dfcd6c40382826f08
tree183e3628bac2ed4badbd4f6a7b289f852bc3b8b3
parentf5b41febbbccdeb1d718930680aad0e093eb1684
Reduce code duplication.

The (hp::)DoFHandler::n_boundary_dofs() functions were specialized for
the 1d case back in the day when faces in 1d were not usable the same
way faces in 2d/3d were accessible via iterators. Because C++ doesn't
allow partial specialization of member functions, the code was also
replicated three times for the <1,1>, <1,2>, and <1,3> cases.

Fix this: We can now always use the generic approach since the necessary
iterators were added several years ago. This also fixes a bug: in <1,2>
and <1,3>, we allow triangulations to have more than 2 end points,
which the existing code was not equipped to deal with.
include/deal.II/dofs/dof_handler.h
include/deal.II/hp/dof_handler.h
source/dofs/dof_handler.cc
source/hp/dof_handler.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.