$extrastylesheet
libMesh::ReferenceElem Namespace Reference

Functions

const Elemget (const ElemType Type)

Detailed Description

This namespace implements singleton reference elements for each fundamental element type supported by libMesh.

Author:
Benjamin S. Kirk, 2013.

Function Documentation

const Elem & libMesh::ReferenceElem::get ( const ElemType  Type)
Returns:
a constant reference to the reference element of the user-requested type.

Definition at line 240 of file reference_elem.C.

References libMesh::INVALID_ELEM, and libMesh::libmesh_assert().

Referenced by libMesh::Elem::reference_elem().

{
  libmesh_assert_less (Type, INVALID_ELEM);

  init_ref_elem_table();

  libmesh_assert (ref_elem_map[Type] != NULL);

  return *ref_elem_map[Type];
}