Using elem_type in the equations and almost everywhere