MCPcopy Create free account
hub / github.com/Kitware/VTK / CreateEntity

Method CreateEntity

IO/IOSS/vtkIOSSModel.cxx:1981–1992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1979 }
1980
1981 Ioss::GroupingEntity* CreateEntity(
1982 Ioss::DatabaseIO* db, const std::string& blockName, const int64_t elementCount) const override
1983 {
1984 // for mixed topology blocks, IOSS uses "unknown"
1985 const auto* mixed_topo = Ioss::ElementTopology::factory("unknown");
1986 const auto& elementType = mixed_topo->name();
1987 auto* sideBlock =
1988 new Ioss::SideBlock(db, "sideblock_0", elementType, elementType, elementCount);
1989 auto* sideSet = new Ioss::SideSet(db, blockName);
1990 sideSet->add(sideBlock);
1991 return sideSet;
1992 }
1993
1994 void AddEntity(Ioss::Region& region, Ioss::GroupingEntity* entitySet) const override
1995 {

Callers

nothing calls this directly

Calls 3

factoryFunction · 0.50
nameMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected