Try:
project(f_fine, V_coarse)
Which essentially does what you describe, but using
b = assemble(rhs)
AFAIK this is the L2 projection of f unto V_coarse.
Also the mesh argument to assemble is only used when the form does not contain any mesh.
Try:
project(f_fine, V_coarse)
Which essentially does what you describe, but using
b = assemble(rhs)
AFAIK this is the L2 projection of f unto V_coarse.
Also the mesh argument to assemble is only used when the form does not contain any mesh.