This routine creates new mesh object attributes called xmed,ymed and zmed if they do not already exist.  These attributes have length nelements and rank scalar.  They contain the x,y,z coordinates of the median point of each element in the mesh.  The median point is defined for all supported element types.