]> https://gitweb.dealii.org/ - dealii.git/commit
Improved comparison operators for TriaAccessorBase 264/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 22 Nov 2014 07:08:33 +0000 (08:08 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 22 Nov 2014 07:08:33 +0000 (08:08 +0100)
commitc07e2596b5fb3297ad3ad6b426f6d17acfa462c2
treed87b1bcde5655ecdeaa5a5cf1b13635d5bd63531
parent016efd10e482151c2d3fa0147e5c119e946fd301
Improved comparison operators for TriaAccessorBase

The previous commit was a bit too aggressive because it is still useful to catch the case when comparing iterators to two different triangulations (leading to infinite loops).

Therefore, I now merely extended the assertion to not trigger when one of the two objects is default constructed, i.e., does contain a null pointer to tria. The comparison then does not need tria == a.tria because invalid iterators use invalid cell and level index, too (leading to !=).
include/deal.II/grid/tria_accessor.templates.h

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.