]> https://gitweb.dealii.org/ - dealii.git/commit
Make DoFAccessor::set_active_fe_index() a 'const' function. 4817/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 13 Aug 2017 19:21:43 +0000 (13:21 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 13 Aug 2017 19:21:43 +0000 (13:21 -0600)
commitf2d7714cfe79ee42dc8c134d2d7f57f96f58ef41
tree9241d59ecd6df1d239328f6c8e82fca7450fdda0
parent1521f2bb96f884396dee2a2497a70256d48b0c55
Make DoFAccessor::set_active_fe_index() a 'const' function.

We are not being very consistent in marking which DoFAccessor functions are 'const'
because it's difficult to actually define what 'const' would mean: does it change
the accessor, or does it change the DoFHandler it points to. As a consequence,
the TriaAccessor member functions are *all* const, but the DoFAccessor functions
are more or less random.

Rather than attacking this problem altogether, I'm making the minimal change that
solves the problem I currently have.
include/deal.II/dofs/dof_accessor.h
include/deal.II/dofs/dof_accessor.templates.h

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.