![]() |
|
Functions | |
| template<class GEOM_ELEMENT_BASE , class ELEMENT > | |
| void | assert_geometric_element (const unsigned &dim, const unsigned &nnode_1d=0) |
//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Namespace with helper function to check element type in mesh constructors (say).
| void oomph::MeshChecker::assert_geometric_element | ( | const unsigned & | dim, |
| const unsigned & | nnode_1d = 0 |
||
| ) |
Helper function to assert that finite element of type ELEMENT can be cast to base class of type GEOM_ELEMENT_BASE – useful to avoid confusion if a mesh that was written for a specific element type (e.g. a QElement) is used with another one (e.g. a TElement. First argument specifies the required spatial dimension of the element (i.e. the number of local coordinates). The optional second argument specifies the required nnode_1d (i.e. the number of nodes along a 1D element edge). Can be omitted if the mesh can handle any number in which case this test is skipped.
References plotDoE::name, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.