Wrong assignation of values in dolfinx vectors

Check the size of this array. It will be the same as q_n.x.array
This is because q_n.sub(0) is a view of the original function, and does not have its own array.

You should collapse the function space, and use the map to assign data from a collapsed function to the Mixed function, see: Assigning a scalar expression to mixed function space - #4 by dokken