Problem with assembling

Hello everybody,

I would be very grateful if someone here could help me.

I have the following problem. I want to “change” the linear form and then assemble it. The problem is that in my

L = M*u0_vec + dt*M*v0_vec + dt**2*(1-2*beta)*M*a0_vec 

M is a dolfin.cpp.la.Matrix and u0,v0 and a0 were originally dolfin.function.function.Functions. Now they are dolfin.cpp.la.PETScVectors. After my calculation i want to do

assemble(L).

That is why L has to be again of the type of dolfin.function.function.Function. Now it is of course of the type dolfin.cpp.la.PETScVector. Is there any chance to convert it back?

Thank you!