libMesh
Private Member Functions | List of all members
MeshExtruderTest::QueryElemSubdomainID Class Reference
Inheritance diagram for MeshExtruderTest::QueryElemSubdomainID:
[legend]

Private Member Functions

virtual subdomain_id_type get_subdomain_for_layer (const Elem *old_elem, unsigned int layer)
 The override from the base class for obtaining a new id based on the old (original) element and the specified layer. More...
 

Detailed Description

Definition at line 31 of file mesh_extruder.C.

Member Function Documentation

◆ get_subdomain_for_layer()

virtual subdomain_id_type MeshExtruderTest::QueryElemSubdomainID::get_subdomain_for_layer ( const Elem old_elem,
unsigned int  layer 
)
inlineprivatevirtual

The override from the base class for obtaining a new id based on the old (original) element and the specified layer.

Implements libMesh::MeshTools::Generation::QueryElemSubdomainIDBase.

Definition at line 34 of file mesh_extruder.C.

References libMesh::Elem::subdomain_id().

35  {
36  // This method will assign an new id based on the old element and the layer
37  return old_elem->subdomain_id() + layer;
38  }
subdomain_id_type subdomain_id() const
Definition: elem.h:2391

The documentation for this class was generated from the following file: