--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/e0a2bf26-e56a-408a-84a7-914b9c7c488a%40googlegroups.com.
Hi Shahab,
I think this problem does not come from the vertex_to_cell_map but from the way you try to use it to find the neighbors. After calling vertex_to_cell_map you do not need to call GridTools::find_active_cell_around_point, because you already now the cells a vertex belongs to. Try the following modified code instead:
You will notice that some cells appear more than once. That is because they are vertex neigbors to the current cell for more than one vertex. If you need to remove duplication you can collect the neighbors of the current cell in a std::set, which removes all duplications.
Hope that helps,
Best,
Rene
--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/U49iAg--i8M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/e0ddc6e9-f2ec-495b-9787-8887922d66c2%40googlegroups.com.
-- Rene Gassmoeller https://gassmoeller.github.io/