]> https://gitweb.dealii.org/ - dealii.git/commit
No longer store dofs_per_vertex for each MG vertex. 4596/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 14:50:10 +0000 (08:50 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 18:08:50 +0000 (12:08 -0600)
commit530ee971680f6f4cfc3d094dc926276bf8ae1666
tree611af6ae1f4fa09c54305b0ba9d9ae0785e6328f
parentf5b41febbbccdeb1d718930680aad0e093eb1684
No longer store dofs_per_vertex for each MG vertex.

In #4564, I already noted that the way we store vertex DoF indices in the MG
case was not particularly efficient because we kept around a dynamically
sized 'offset' array for each vertex whose entries were computable: they were
successive multiples of dofs_per_cell. So #4564 replaces that by just storing
dofs_per_cell itself for each vertex.

But that, of course, is also wasteful: why store it once per vertex when that
will be the same number for every vertex. Rather, what this patch does is
to pass that number to the functions that access these DoF indices, so that
we can use the global fe.dofs_per_vertex instead. This saves 4 bytes per
vertex, and maybe a few cycles of CPU time on top of it.
include/deal.II/dofs/dof_accessor.templates.h
include/deal.II/dofs/dof_handler.h
source/dofs/dof_handler.cc
source/dofs/dof_handler_policy.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.