Hello all,

I'm attempting to set material ID based on x-location. I'd like to create  
std::unordered_map between x-locations of cell centers and material id, and 
then refer to that map to quickly set material_id later.

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.

However, this must be a commonly done sort of thing... what's the best way 
to map a known set of Point objects to other data?

Best,
Corbin

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/fd143114-2dec-44d2-9ebe-f5395289de10n%40googlegroups.com.

Reply via email to