diff --git a/include/overset/TiogaBlock.h b/include/overset/TiogaBlock.h index d614eb471..01d5be71c 100644 --- a/include/overset/TiogaBlock.h +++ b/include/overset/TiogaBlock.h @@ -158,6 +158,11 @@ class TiogaBlock void update_element_volumes(); /** Adjust resolutions of mandatory fringe entities + * + * The entities connected to overset sidesets have their + * nodal/cell resolutions adjusted so that TIOGA will never consider these + * cells as donors. This adjustment is necessary to avoid fringe/field + * mismatch across domain partition boundaries. */ void adjust_cell_resolutions(); diff --git a/include/overset/TiogaOptions.h b/include/overset/TiogaOptions.h index ebbfb9050..11579b393 100644 --- a/include/overset/TiogaOptions.h +++ b/include/overset/TiogaOptions.h @@ -42,19 +42,8 @@ class TiogaOptions */ void set_options(TIOGA::tioga&); - bool set_resolutions() const { return setResolutions_; } - bool reduce_fringes() const { return reduceFringes_; } - /** Adjust resolutions for mandatory fringe nodes - * - * If true, then the entities connected to overset sidesets have their - * nodal/cell resolutions adjusted so that TIOGA will never consider these - * cells as donors. This adjustment is necessary to avoid fringe/field - * mismatch across domain partition boundaries. - */ - bool adjust_resolutions() const { return adjustResolutionsForFringes_; } - double cell_res_mult() const { return cellResMult_; } double node_res_mult() const { return nodeResMult_; } @@ -94,10 +83,6 @@ class TiogaOptions //! Flag indicating whether user has set the mexclude variable bool hasMexclude_{false}; - - //! Flag indicating whether the node/cell resolutions should be adjusted for - //! mandatory fringes - bool adjustResolutionsForFringes_{true}; }; } // namespace tioga_nalu diff --git a/src/overset/TiogaBlock.C b/src/overset/TiogaBlock.C index ebd5540ea..3f8999452 100644 --- a/src/overset/TiogaBlock.C +++ b/src/overset/TiogaBlock.C @@ -711,9 +711,8 @@ TiogaBlock::register_block(TIOGA::tioga& tg) tg.set_cell_iblank(meshtag_, bdata_.iblank_cell_.h_view.data()); // Register cell/node resolutions for TIOGA - if (tiogaOpts_.set_resolutions()) - tg.setResolutions( - meshtag_, bdata_.node_res_.h_view.data(), bdata_.cell_res_.h_view.data()); + tg.setResolutions( + meshtag_, bdata_.node_res_.h_view.data(), bdata_.cell_res_.h_view.data()); } void diff --git a/src/overset/TiogaOptions.C b/src/overset/TiogaOptions.C index fe88cb243..2513f45a6 100644 --- a/src/overset/TiogaOptions.C +++ b/src/overset/TiogaOptions.C @@ -19,9 +19,6 @@ TiogaOptions::load(const YAML::Node& node) if (node["symmetry_direction"]) symmetryDir_ = node["symmetry_direction"].as(); - if (node["set_resolutions"]) - setResolutions_ = node["set_resolutions"].as(); - if (node["reduce_fringes"]) reduceFringes_ = node["reduce_fringes"].as(); @@ -41,11 +38,6 @@ TiogaOptions::load(const YAML::Node& node) if (node["node_resolution_multiplier"]) { nodeResMult_ = node["node_resolution_multiplier"].as(); } - - if (node["adjust_mandatory_fringe_resolutions"]) { - adjustResolutionsForFringes_ = - node["adjust_mandatory_fringe_resolutions"].as(); - } } void diff --git a/src/overset/TiogaSTKIface.C b/src/overset/TiogaSTKIface.C index 935c5d85c..5f65f53ab 100644 --- a/src/overset/TiogaSTKIface.C +++ b/src/overset/TiogaSTKIface.C @@ -142,19 +142,15 @@ TiogaSTKIface::register_mesh() for (auto& tb : blocks_) { tb->update_coords(); tb->update_element_volumes(); - if (tiogaOpts_.adjust_resolutions()) - tb->adjust_cell_resolutions(); + tb->adjust_cell_resolutions(); } - if (tiogaOpts_.adjust_resolutions()) { - auto* nodeVol = - meta_.get_field(stk::topology::NODE_RANK, "tioga_nodal_volume"); - stk::mesh::parallel_max(bulk_, {nodeVol}); - } + auto* nodeVol = + meta_.get_field(stk::topology::NODE_RANK, "tioga_nodal_volume"); + stk::mesh::parallel_max(bulk_, {nodeVol}); for (auto& tb : blocks_) { - if (tiogaOpts_.adjust_resolutions()) - tb->adjust_node_resolutions(); + tb->adjust_node_resolutions(); tb->register_block(tg_); } }