LifeV
MeshEntity.cpp
Go to the documentation of this file.
1 /*
2  * MeshEntity.cpp
3  *
4  * Created on: 11 Sep 2011
5  * Author: formaggia
6  */
7 #include <lifev/core/LifeV.hpp>
8 #include <lifev/core/mesh/MeshEntity.hpp>
9 
10 namespace LifeV
11 {
12 
13 namespace EntityFlags
14 {
15 
16 std::string name ( const flag_Type& flag )
17 {
18  switch ( flag )
19  {
20  case PHYSICAL_BOUNDARY:
21  return "PHYSICAL_BOUNDARY";
22  case INTERNAL_INTERFACE:
23  return "INTERNAL_INTERFACE";
24  case SUBDOMAIN_INTERFACE:
25  return "SUBDOMAIN_INTERFACE";
26  case OVERLAP:
27  return "OVERLAP";
28  case CUTTED:
29  return "CUTTED";
30  case VERTEX:
31  return "VERTEX";
32  default:
33  return "FLAG_NOT_FOUND";
34  }
35 }
36 
37 }// namespace EntityFlags
38 
39 void MeshEntity::showMe ( std::ostream& output) const
40 {
41  output << " Global ID : " << M_id << " -- " << " Local ID " << M_localId << std::endl;
42  Flag::showMe ( M_flag, output );
43  output << std::endl;
44 }
45 
46 }// namespace LifeV
This is the base class to store basic properties of any mesh entity.
Definition: MeshEntity.hpp:97
uint32_type flag_Type
bit-flag with up to 32 different flags
Definition: LifeV.hpp:197
void updateInverseJacobian(const UInt &iQuadPt)
void showMe(std::ostream &output=std::cout) const
Displays the informations stored by this class.
Definition: MeshEntity.cpp:39
void showMe(flag_Type const &flag, std::ostream &out=std::cout)
showMe method to print out flag status the flag is converted to its binary form ( right -> left corre...
Definition: LifeV.cpp:40
flag related free functions and functors
Definition: LifeV.hpp:203
available bit-flags for different geometric properties
Definition: MeshEntity.hpp:48
std::string name(const flag_Type &flag)
Definition: MeshEntity.cpp:16