]> https://gitweb.dealii.org/ - dealii.git/commit
Clean up one more DoFHandlerPolicy thing. 4554/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Jun 2017 14:48:39 +0000 (08:48 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Jun 2017 14:48:39 +0000 (08:48 -0600)
commita332467d75e19197a123e5f53e920af77adeb439
treed35a578416fe658be6ec6b882f5047dfcfb3074d
parent1565736d7024656dc036dca9a55f21164f01117a
Clean up one more DoFHandlerPolicy thing.

We had a function with a funny comment suggesting that a compiler did not
correctly understand the code. But the comment is wrong: when the only
argument to a function that references a 'dim' or 'spacedim' template
argument is of the form
  onst typename DoFHandler<dim,spacedim>::level_cell_iterator &
then 'dim' and 'spacedim' are simply not deducible. That's how C++ works.

The function therefore had a dummy argument of type DoFHandler<dim,spacedim>
that isn't used. That's awkward, but works. But we have a way to deal
with the lack of deducibility that's used elsewhere in the library
namely internal::int2type. Use this approach here as well, and remove
the misleading comment.
source/dofs/dof_handler_policy.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.