]> https://gitweb.dealii.org/ - dealii.git/commit
Simplify code. 1183/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Jul 2015 22:07:07 +0000 (17:07 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Jul 2015 22:07:07 +0000 (17:07 -0500)
commit22512b1e753ae56fc060a9b17fd2ba052669c0d1
tree9757b545c32ef386db0923e21617456f6d3f72b2
parente1e3a9fb1982b78a984ea8b2c2992ea8581e806d
Simplify code.

There are a couple of places where we call a get_data() function
that returns a pointer to a base class when we know that the actual
data type is a pointer to derived class. We need to cast right back
to the derived class.

This can be avoided by using covariant return types where the get_data()
function returns a pointer to derived right away.
include/deal.II/fe/mapping_q.h
include/deal.II/fe/mapping_q1.h
source/fe/mapping_q.cc
source/fe/mapping_q1.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.