]> https://gitweb.dealii.org/ - dealii.git/commit
Use index sets to simplify some assertions. 2579/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 7 May 2016 23:34:19 +0000 (19:34 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 8 May 2016 19:36:23 +0000 (15:36 -0400)
commit52721571b4bdc9a9c7f1b0e6358f702a382c2ecc
treee793d015df0d5ee19c92a9b8da87b92c9bf54160
parent46feeeea027772208d46b3eed90be01e6cf274f2
Use index sets to simplify some assertions.

GCC 6.1 now warns (-Waddress) that (since the dynamic cast of an object
back to its own type always succeeds) the address of an object is always
nonzero. Fortunately these dynamic casts are not needed anymore due to
better support for generic programming in the library.

Since local_size is not available for scalar vectors, perform (stricter)
checks with index sets instead.

Regardless of the new GCC warning, these assertions are useful for all
distributed vectors (and may be run now for sequential vectors too) and
dof handler type, so they should always be checked.
source/fe/fe_tools_interpolate.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.