Hi all,


is there a way to project a function defined on a fine mesh onto a functionspace with a coarse mesh? Look at the following exemplary setup:


from firedrake import *

import numpy as np


mesh_fine =  UnitSquareMesh(20,20)

mesh_coarse =  UnitSquareMesh(10,10)


fs_fine  = FunctionSpace(mesh_fine, 'CG', 1)

fs_coarse  = FunctionSpace(mesh_coarse, 'CG', 1)


fun_fine = Function(fs_fine)

fun_fine.dat.data[:] = np.random.normal(0, 1, len(fun_fine.dat.data))


fun_coarse = ?


In this case, perhaps one could inherit overlapping nodes from fine to coarse mesh?

All the best,
Tobias