]> https://gitweb.dealii.org/ - dealii.git/commit
Improve the storage of MG vertex dofs.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2017 05:23:04 +0000 (23:23 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2017 05:23:04 +0000 (23:23 -0600)
commitac12bdce5d98671487a2bfb66fa92d56359b6546
treefadc058b42f05f694d9223732333bfe9d1f64c93
parente69c5b28e2c37cfb37380b724bc3fd70935c4cc5
Improve the storage of MG vertex dofs.

The DoF indices for a vertex are stored in an array where we just
collate the indices for each level. There is currently another
array that stors the offset within this array where the DoFs
for a given level start. This array is dynamically allocated,
but it is altogether unnecessary because the offsets are computable:
they are simply the number of the multigrid level times
dofs_per_vertex.

Consequently, get rid of the array and replace it by storing dofs_per_vertex.
We can then easily compute the starting offset wherever necessary, rather than
having to look it up.
include/deal.II/dofs/dof_handler.h
source/dofs/dof_handler.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.