Skip to content

Commit

Permalink
Altering the the call to tioga::setHoleMapAlgorithm()
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu committed Feb 16, 2024
1 parent a2dcafd commit 233f537
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/exawind/exawind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int main(int argc, char** argv)
: 1;
const bool holemap_alg = node["use_adaptive_holemap"]
? node["use_adaptive_holemap"].as<bool>()
: 0;
: false;
sim.set_holemap_alg(holemap_alg);

const YAML::Node yaml_replace_all = node["nalu_replace_all"];
Expand Down
4 changes: 2 additions & 2 deletions src/OversetSimulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ void OversetSimulation::perform_overset_connectivity()
m_timers_tg.tick("Connectivity");
if (m_has_amr) m_tg.preprocess_amr_data();
m_tg.profile();
if (m_holemap_alg == 1 && m_comp_comm_initialized != true) {
if (m_holemap_alg == 1 && m_complementary_comm_initialized == false) {
m_tg.assembleComms();
m_comp_comm_initialized = true;
m_complementary_comm_initialized = true;
}
m_tg.performConnectivity();
if (m_has_amr) m_tg.performConnectivityAMR();
Expand Down
6 changes: 3 additions & 3 deletions src/OversetSimulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OversetSimulation
//! Flag indicating whether initialization tasks have been performed
bool m_initialized{false};
//! Flag indicating if complementary comms have been initialized
bool m_comp_comm_initialized{false};
bool m_complementary_comm_initialized{false};
//! Flag for holemap algorithm
bool m_holemap_alg{false};
//! Tioga instance
Expand Down Expand Up @@ -104,10 +104,10 @@ class OversetSimulation
m_num_nw_solvers = m_nw_start_rank.size();
}

void set_holemap_alg(int alg)
void set_holemap_alg(bool alg)
{
m_holemap_alg = alg;
m_tg.setHoleMapAlgorithm(alg);
if (m_holemap_alg==true) m_tg.setHoleMapAlgorithm(1);
}
};

Expand Down

0 comments on commit 233f537

Please sign in to comment.