mapping of global dof indices after solution transfer

23 views
Skip to first unread message

Simon

unread,
Jun 4, 2024, 3:11:45 PMJun 4
to deal.II User Group
Dear all,

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?

Thanks,
Simon

Wolfgang Bangerth

unread,
Jun 4, 2024, 6:06:12 PMJun 4
to dea...@googlegroups.com
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: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Reply all
Reply to author
Forward
0 new messages