18 std::set<uint64_t> vertex_ids_with_local_scope;
21 for (
const auto& template_cell : template_grid.
local_cells)
25 throw std::logic_error(
"Extruder::CreateLocalNodes: "
26 "Template cell error. Not of base type POLYGON");
28 bool has_local_scope =
HasLocalScope(template_cell, template_grid, iz);
32 auto& vertex_set = vertex_ids_with_local_scope;
33 for (
auto tc_vid : template_cell.vertex_ids_)
36 for (
auto tc_vid : template_cell.vertex_ids_)
47 for (
auto& id_vertex : template_grid.
vertices)
49 const auto& vertex = id_vertex.second;
50 auto local_scope = vertex_ids_with_local_scope.find(vid);
52 if (local_scope != vertex_ids_with_local_scope.end())
LocalCellHandler local_cells
void SetGlobalVertexCount(const uint64_t count)
void Insert(const uint64_t global_id, const chi_mesh::Vector3 &vec)
size_t node_z_index_incr_
void CreateLocalNodes(chi_mesh::MeshContinuum &template_grid, chi_mesh::MeshContinuum &grid)
bool HasLocalScope(const chi_mesh::Cell &template_cell, const chi_mesh::MeshContinuum &template_continuum, size_t z_level)
std::vector< double > vertex_layers_