On 2/6/21 1:55 PM, Corbin Foucart wrote:
The compiler is rightly complaining that there isn't a hash method for the
Point object, and it seems like this could indeed be dangerous, because of
floating point comparison later between Point objects during lookup.
Just add such a hash function for Point. It's true that two nearby points will
have different hash values, but that shouldn't stop you from using hashes if
you query the same points over and over.
That said, I would suggest to do the indexing not on geometric locations but
the logic position of a cell. You can either do that with a cell iterator
itself, or if you want to make it work in a parallel context, the CellId of a
cell.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/fcaa1f48-c287-f515-704c-dadb42b41080%40colostate.edu.