diff --git a/framework/include/meshgenerators/BreakMeshByBlockGenerator.h b/framework/include/meshgenerators/BreakMeshByBlockGenerator.h index 1bc8ed4cee..a99ce399d1 100644 --- a/framework/include/meshgenerators/BreakMeshByBlockGenerator.h +++ b/framework/include/meshgenerators/BreakMeshByBlockGenerator.h @@ -76,7 +76,8 @@ private: _elem_side_to_fake_neighbor_elem_side; /// @brief Maps a pair of subdomain ids to the corresponding boundary id. - std::unordered_map, boundary_id_type> _subid_pairs_to_boundary_id; + std::unordered_map, boundary_id_type> + _subid_pairs_to_boundary_id; /// generate the new boundary interface void addInterface(MeshBase & mesh); diff --git a/framework/src/meshgenerators/BreakMeshByBlockGenerator.C b/framework/src/meshgenerators/BreakMeshByBlockGenerator.C index 69c5ea9241..fd20b49ac9 100644 --- a/framework/src/meshgenerators/BreakMeshByBlockGenerator.C +++ b/framework/src/meshgenerators/BreakMeshByBlockGenerator.C @@ -309,8 +309,8 @@ BreakMeshByBlockGenerator::generate() unsigned int connected_elem_side = connected_elem->which_neighbor_am_i(current_elem); elem_side_to_fake_neighbor_elem_side.emplace( - std::make_pair(current_elem, side), - std::make_pair(connected_elem, connected_elem_side)); + std::make_pair(current_elem, side), + std::make_pair(connected_elem, connected_elem_side)); // in this case we need to play a game to reorder the sides // Ensure consistent ordering: (min, max) for block (subdomain) IDs @@ -512,7 +512,6 @@ BreakMeshByBlockGenerator::addInterface(MeshBase & mesh) } } - // Map the block pair (subdomain_id_A, subdomain_id_B) to the generated boundary_id // This makes it easy to look up or create boundary pairs later _subid_pairs_to_boundary_id[boundary_side] = boundary_id; @@ -533,21 +532,21 @@ BreakMeshByBlockGenerator::addInterface(MeshBase & mesh) const auto & boundary_id = entry.second; const auto rev_pair = std::make_pair(sub_pair.second, sub_pair.first); - const bool has_reverse = _subid_pairs_to_boundary_id.find(rev_pair) != _subid_pairs_to_boundary_id.end(); + const bool has_reverse = + _subid_pairs_to_boundary_id.find(rev_pair) != _subid_pairs_to_boundary_id.end(); if (has_reverse) // Normal disconnected boundary pair: blockA_blockB <-> blockB_blockA - mesh.add_disconnected_boundaries(boundary_id, - _subid_pairs_to_boundary_id[rev_pair], - RealVectorValue(0.0, 0.0, 0.0)); + mesh.add_disconnected_boundaries( + boundary_id, _subid_pairs_to_boundary_id[rev_pair], RealVectorValue(0.0, 0.0, 0.0)); else { _mesh->setIncompleteInterfacePairs(); - mooseInfo("Single interface boundary '", boundary_id, + mooseInfo("Single interface boundary '", + boundary_id, "' found (no reverse pair). Compatible only with non-CZM setups."); } } - } subdomain_id_type @@ -654,4 +653,3 @@ BreakMeshByBlockGenerator::syncConnectedBlocks( nodeid_to_connected_blocks[node_id].insert(blocks_vec.begin(), blocks_vec.end()); }); } -