Skip to content
Snippets Groups Projects
Commit 4c7b0f7c authored by Matteo Cicuttin's avatar Matteo Cicuttin
Browse files

material_tag() in entity.

parent d1a716e3
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,8 @@ class entity ...@@ -24,6 +24,8 @@ class entity
int elemType_2D; int elemType_2D;
int g_order; int g_order;
int a_order; int a_order;
int parent_dim;
int parent_tag;
size_t m_dof_base; size_t m_dof_base;
size_t m_flux_base; size_t m_flux_base;
...@@ -103,6 +105,7 @@ public: ...@@ -103,6 +105,7 @@ public:
void sort_by_orientation(void); void sort_by_orientation(void);
void sort_by_gmsh(void); void sort_by_gmsh(void);
int material_tag(void) const;
int gmsh_tag(void) const; int gmsh_tag(void) const;
int gmsh_elem_type(void) const; int gmsh_elem_type(void) const;
entity_ordering current_elem_ordering(void) const; entity_ordering current_elem_ordering(void) const;
......
...@@ -42,6 +42,8 @@ entity::entity(const entity_params& ep) ...@@ -42,6 +42,8 @@ entity::entity(const entity_params& ep)
assert(physical_faces.size() == 4*physical_cells.size()); assert(physical_faces.size() == 4*physical_cells.size());
assert(faceTags.size() == 4*physical_cells.size()); assert(faceTags.size() == 4*physical_cells.size());
gm::getParent(dim, tag, parent_dim, parent_tag);
} }
std::vector<size_t> std::vector<size_t>
...@@ -500,6 +502,15 @@ entity::sort_by_gmsh(void) ...@@ -500,6 +502,15 @@ entity::sort_by_gmsh(void)
} }
#endif #endif
int
entity::material_tag(void) const
{
if (parent_tag == -1)
return tag;
return parent_tag;
}
int int
entity::gmsh_tag(void) const entity::gmsh_tag(void) const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment