]> https://gitweb.dealii.org/ - dealii.git/commit
Use index sets to simplify some assertions.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 7 May 2016 23:34:19 +0000 (19:34 -0400)
committerMatthias Maier <tamiko@43-1.org>
Thu, 1 Sep 2016 00:00:22 +0000 (19:00 -0500)
commit60d37981715cc70ec51bc9c4b54f3e53faeacf51
treeca2db08cf5c08cafba6d8b1fe6c57584b1ba2735
parentc9eba7d7b1163437c187717f119d37d93ab02a93
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.