MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / gmsh_triangle

Function gmsh_triangle

cpp/dolfinx/io/cells.cpp:442–455  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

440}
441//-----------------------------------------------------------------------------
442std::vector<std::uint16_t> gmsh_triangle(int num_nodes)
443{
444 switch (num_nodes)
445 {
446 case 3:
447 return {0, 1, 2};
448 case 6:
449 return {0, 1, 2, 5, 3, 4};
450 case 10:
451 return {0, 1, 2, 7, 8, 3, 4, 6, 5, 9};
452 default:
453 throw std::runtime_error("Higher order Gmsh triangle not supported");
454 }
455}
456//-----------------------------------------------------------------------------
457std::vector<std::uint16_t> gmsh_tetrahedron(int num_nodes)
458{

Callers 1

perm_gmshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected