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

Function gmsh_prism

cpp/dolfinx/io/cells.cpp:502–515  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

500}
501//-----------------------------------------------------------------------------
502std::vector<std::uint16_t> gmsh_prism(int num_nodes)
503{
504 switch (num_nodes)
505 {
506 case 6:
507 return {0, 1, 2, 3, 4, 5};
508 case 15:
509 return {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
510 case 18:
511 return {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
512 default:
513 throw std::runtime_error("Higher order Gmsh prism not supported");
514 }
515}
516//-----------------------------------------------------------------------------
517std::vector<std::uint16_t> gmsh_pyramid(int num_nodes)
518{

Callers 1

perm_gmshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected