src/meshReaders/Hex_Mesh_Reader.cc
std::vector<Element_Definition::Element_Type> Hex_Mesh_Reader::get_unique_element_types() const {
  std::vector<Element_Definition::Element_Type> tmp;
  tmp.push_back(Element_Definition::NODE);
  tmp.push_back(Element_Definition::BAR_2);
  switch (ndim) {
  case (1):
    break;
  case (2):
    tmp.push_back(Element_Definition::QUAD_4);
    break;
  case (3):
    tmp.push_back(Element_Definition::QUAD_4);
    tmp.push_back(Element_Definition::HEXA_8);
    break;
  default:
    Insist(false, "Dimension index out of range!");
  }
  return tmp;
}
//------------------------------------------------------------------------------------------------//
/*!
 * Returns the unique element types defined in the mesh. Will always be one of
 * - rtt_mesh_element::Element_Definition::NODE,
 * - rtt_mesh_element::Element_Definition::BAR_2,
 * - rtt_mesh_element::Element_Definition::QUAD_4, or
 * - rtt_mesh_element::Element_Definition::HEXA_8.
 */
Returns the unique element types defined in the mesh.
Returns the unique element types defined in the mesh .
std::vector<Element_Definition::Element_Type> Hex_Mesh_Reader::get_unique_element_types() const {
  std::vector<Element_Definition::Element_Type> tmp;
  tmp.push_back(Element_Definition::NODE);
  tmp.push_back(Element_Definition::BAR_2);
  switch (ndim) {
  case (1):
    break;
  case (2):
    tmp.push_back(Element_Definition::QUAD_4);
    break;
  case (3):
    tmp.push_back(Element_Definition::QUAD_4);
    tmp.push_back(Element_Definition::HEXA_8);
    break;
  default:
    Insist(false, "Dimension index out of range!");
  }
  return tmp;
}
std :: vector < Element_Definition :: Element_Type > Hex_Mesh_Reader :: get_unique_element_types ( ) const { std :: vector < Element_Definition :: Element_Type > tmp ; tmp . push_back ( Element_Definition :: NODE ) ; tmp . push_back ( Element_Definition :: BAR_2 ) ; switch ( ndim ) { case ( 1 ) : break ; case ( 2 ) : tmp . push_back ( Element_Definition :: QUAD_4 ) ; break ; case ( 3 ) : tmp . push_back ( Element_Definition :: QUAD_4 ) ; tmp . push_back ( Element_Definition :: HEXA_8 ) ; break ; default : Insist ( false , " " ) ; } return tmp ; }
Returns the unique element types defined in the mesh.
Returns the unique element types defined in the mesh .