]> https://gitweb.dealii.org/ - dealii.git/commit
MappingP1: only compute the covariant once. 18633/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 7 Jul 2025 01:16:46 +0000 (21:16 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 7 Jul 2025 01:19:02 +0000 (21:19 -0400)
commitb81750ad6ee153fa979b87b4985a3769228692b6
treed9d9f519f5bd292e6487ddbc6e6fcf4251c4d254
parent6436b9c4cb534637b8c7de628c7aa3ef8d044f38
MappingP1: only compute the covariant once.

I did some more profiling and saw that, in the same load vector
benchmark, I was computing the covariant about 10 places per cell - its
easy enough to just compute it once and store it with the rest of the
transformation.

I elected to unconditionally compute the covariant (and determinant of
the contravariant in the last PR) since they are constant on each cell
and needed most of the time.
include/deal.II/fe/mapping_p1.h
source/fe/mapping_p1.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.