Mesh refinement is an important tool for editing finite element meshes in order to increase the accuracy of the solution. Refinement is performed in an iterative procedure in which a solution is found, error estimates are calculated, and elements in regions of high error are refined. This process is repeated until the desired accuracy is obtained.