Dear Tomasz,
I would like to check the convergence of my solution as I refine the mesh.
Say, I have two solutions in CG1 space, f_coarse on mesh_coarse and f_fine on mesh_fine, which is a refined mesh_coarse. Can I map/interpolate/project f_fine onto mesh_coarse in Firedrake?
You can do this through the multigrid tools.
# make an empty coarse function (Here, Vc is the coarse FS)
f_coarse_ = Function(Vc)
# project fine onto coarse
inject(f_fine, f_coarse_)
# check error
norm(assemble(f_coarse - f_coarse_))
Many Thanks,
Dear all,
I would like to check the convergence of my solution as I refine the mesh.
Say, I have two solutions in CG1 space, f_coarse on mesh_coarse and f_fine on mesh_fine, which is a refined mesh_coarse. Can I map/interpolate/project f_fine onto mesh_coarse in Firedrake?
Thank you,
Tomasz