28 Mar
2016
28 Mar
'16
1:24 p.m.
Dear All, I have a function w: mesh = UnitSquareMesh(size, size, quadrilateral = True) V0 = FunctionSpace(mesh, "DG", 0) w = Function(V0) ... w was calculated during my program run. Now, I want to project it to finer mesh, something like: mesh2 = UnitSquareMesh(2*size, 2*size, quadrilateral = True) V2_0 = FunctionSpace(mesh, "DG", 0) w2 = Function(V2_0) project(w, w2) but I'm getting errors about mesh being quadrilateral or something like RuntimeError: Can't project between mismatching meshes. What is the correct way to project function from one mesh to another? Sincerely, George