]> https://gitweb.dealii.org/ - dealii.git/commit
Update GridTools::laplace_transform(). 3645/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Nov 2016 00:01:02 +0000 (17:01 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Nov 2016 00:01:02 +0000 (17:01 -0700)
commitf2552d7f12e7ecd443f3bb9e669ede121a1d2244
tree375630d3d5b001d2db433262324c64be3ad1cb4c
parentfbdb73d88d56fdf8f156e2ea2adaeb35d86c272d
Update GridTools::laplace_transform().

Incomprehensively, the function looped over all faces of a cell, and then
all vertices of the face. This visited each vertex exactly 'dim' times.
This can be done easier.

While there, also fix a number of issues where we confuse 'unsigned int'
with 'types::global_dof_index'. This doesn't matter here because the
function only works in sequential settings anyway, but we should be
consistent.

Finally, instead of setting vertex locations from each adjacent cell, only
do it once by keeping track when we touch the vertex the first time.
source/grid/grid_tools.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.