Skip to content
Snippets Groups Projects
Select Git revision
  • f25b9639bbe06abde2e9b00fb5ebd40786eb26bf
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

CellType.hpp

Blame
  • CellType.hpp 854 B
    #ifndef CELL_TYPE_HPP
    #define CELL_TYPE_HPP
    
    #include <utils/PugsMacros.hpp>
    
    #include <string_view>
    
    enum class CellType : unsigned short
    {
      Line = 0,
    
      Triangle,
      Quadrangle,
      Polygon,
    
      Diamond,
      Hexahedron,
      Prism,
      Pyramid,
      Tetrahedron
    };
    
    PUGS_INLINE
    std::string_view
    name(CellType cell_type)
    {
      switch (cell_type) {
      case CellType::Line:
        return "line";
      case CellType::Triangle:
        return "triangle";
      case CellType::Polygon:
        return "polygon";
      case CellType::Quadrangle:
        return "quadrangle";
      case CellType::Diamond:
        return "diamond";
      case CellType::Hexahedron:
        return "hexahedron";
      case CellType::Prism:
        return "prism";
      case CellType::Pyramid:
        return "pyramid";
      case CellType::Tetrahedron:
        return "tetrahedron";
      default:
        return "unknown cell type";
      }
    }
    
    #endif   // CELL_TYPE_HPP