This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problem with copying index vectors. Has anyone a more elaborate Dolfin example using MPI?

0 votes

Consider two functions u \in U and v \in V, where V is a subspace of U.
I would like to copy a number of DOfs from v to u:
uVec = u.vector()
vVec = v.Vector()
uVec[indexDOFs] = vVec

(indexDOFs is a vector containing the DOFs to be copied)

How can I do that in parallel with MPI?

asked Jun 17, 2015 by meipaff FEniCS Novice (320 points)
...