]> https://gitweb.dealii.org/ - dealii.git/commit
Make the CellSimilarity argument const also in Mapping. 1173/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 21 Jul 2015 14:28:51 +0000 (09:28 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 22 Jul 2015 12:42:16 +0000 (07:42 -0500)
commit358f8234db50c1d3e5656648939e1e53a9bbe892
tree7e35b71e48f2a5b3b6280cca530b71217b0a23ae
parent4c81e15c45e87e175863efe011fc3725504cdfc9
Make the CellSimilarity argument const also in Mapping.

Logically, these arguments are intended to be input arguments, so make them
const. Also, don't make them a reference as they are simply integral values.

That said, the original intention of having a reference was so that
mappings can indicate situations where cell similarity has to be
disregarded. Consequently, let the fill_fe_values() functions return a
cell similarity value that will then simply be assigned to the same
variable again.
14 files changed:
include/deal.II/fe/mapping.h
include/deal.II/fe/mapping_cartesian.h
include/deal.II/fe/mapping_fe_field.h
include/deal.II/fe/mapping_q.h
include/deal.II/fe/mapping_q1.h
include/deal.II/fe/mapping_q1_eulerian.h
include/deal.II/fe/mapping_q_eulerian.h
source/fe/fe_values.cc
source/fe/mapping_cartesian.cc
source/fe/mapping_fe_field.cc
source/fe/mapping_q.cc
source/fe/mapping_q1.cc
source/fe/mapping_q1_eulerian.cc
source/fe/mapping_q_eulerian.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.