p_refine

dolfin.cpp.mesh.p_refine()

Return a p_refined mesh Increase the polynomial order of the mesh from 1 to 2, i.e. add points at the Edge midpoints, to make a quadratic mesh.

Parameters:Mesh & mesh (const) – (Mesh ) The original linear mesh.
Return type:Mesh
Returns:Mesh