On 4/19/22 08:05, Hermes Sampedro wrote:

I have not been able to find the issue. I am considering looking for an alternative. I am using 2 components to describe a complex solution (for real and imaginary parts). Assuming that I keep the ordering by default and that I export my solution vector (to work in an external software), what I need in the end is to know for each value of the solution vector, if it corresponds to the real or imaginary part. I realized by debugging that the order is not consistent and it changes depending on the number of dof. I would like to ask if there is any function or if you could suggest a way to get the vector that contains information about the component type for each node (for example a mask type, where 0 is real and 1 imaginary component). The way I implemented and managed the components, assembly, etc is identical to the one described in step-29.

Yes, there are a number of functions in namespace DoFTools that you can use to extract the indices of DoFs based on their vector component.

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/a2aa58a5-47f1-17bd-b876-be89968fd5ee%40colostate.edu.

Reply via email to