On 6/4/24 13:11, Simon wrote:

I am storing a std::vector<unsigned int> of size N holding global DOF indices living at some nodes of my mesh where we have measured experimental values. After doing a SolutionTransfer motivated by AMR, I want to have the new global DOF indices at the same nodes, so the new vector of indices has the same size N.

I feel the only way to do this is to store the indices along with their support points before I enter the AMR cycle (so far I only store the indices) and determine the new indices after refinement by looping over the new mesh and check the support points for equality.

Is there a more efficient solution for this problem?

Simon,
I think this is the only way to do this. DoF indices are generally not preserved across mesh refinement.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/10920a13-23b9-4930-9659-aaef9def440d%40colostate.edu.

Reply via email to