[Dune] dynamic_cast cost

Marco Cisternino marco.cisternino at optimad.it
Wed Nov 16 11:18:25 CET 2016


Good morning duners,
I'm profiling my code written using dune 2.3.1 and alugrid 1.52.
My code spends a lot of time in 
Dune::LeafIntersectionIteratorWrapper<>::LeafIntersectionIteratorWrapper(Dune::LeafIntersectionIteratorWrapper<> const&)
which calls
ALU3dGridFaceInfo<>::updateFaceInfo(const GEOFaceType& face, int innerLevel, int innerTwist)
because of the dynamic_cast at line 128 in faceutility_imp.cc
Do you think there is a way to avoid the dynamic_cast or replace it with something faster?
Any hints would be appreciated.
Thanks for your attention.

Bests,

Marco Cisternino, PhD
marco.cisternino at optimad.it
_______________________________
OPTIMAD Engineering srl
Via Giacinto Collegno 18, Torino, Italia.
+3901119719782
www.optimad.it





More information about the Dune mailing list