I’m trying (unsuccessfully) to assemble generic dolfin vectors (that originally came from Petsc vectors) into an existing dolfin vector function. I’ve tried many interpretations but none of them does work. Below you can see a part of the code
%%%Now get it back into a dolfin matrix
as = Vector(PETScVector(as))
ae = Vector(PETScVector(ae))
aq = Vector(PETScVector(aq))
%%%Assign the components to VectorFunctionSpace -> al is already a dolfin vector function
al.vector()[:] = ([as, ae, aq])
Any ideas would be welcome.