]> https://gitweb.dealii.org/ - dealii.git/commit
Consistently enforce inlining in simple tensor functions.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 29 Jul 2019 16:12:18 +0000 (18:12 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 30 Jul 2019 07:27:37 +0000 (09:27 +0200)
commit86b9bfe348574f407d4df89411829287ed834cec
treea1e4e33fd3066e50bcd83601e18daa4ebc47a800
parent732cd1b9c7594c14af36309fd3933d07676b9aa5
Consistently enforce inlining in simple tensor functions.

This is necessary because compiler heuristics get bad in complicated situation, replacing simple
calls to one-liners when inlined into a lot of overhead through function calls. A complicated
situation is, e.g., when the same operations on tensors are done by several callers, say a
function templated on the polynomial degree in matrix-free computations where the quadrature
point loop does some operations with tensors in the same way for all degrees.
include/deal.II/base/numbers.h
include/deal.II/base/symmetric_tensor.h
include/deal.II/base/tensor.h
include/deal.II/base/tensor_accessors.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.