Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschsn committed Jan 19, 2021
1 parent 96c4065 commit 6113b26
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions repa/grids/kd_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ bool KDTreeGrid::repartition(CellMetric m, CellCellMetric ccm, Thunk cb)

if (local_repart) {
kdpart::repart_parttree_par_local(m_kdtree->t, comm_cart, m());
} else {
}
else {
m_kdtree = std::make_unique<KDTreePrivateImpl>(
kdpart::repart_parttree_par(m_kdtree->t, comm_cart, m()));
}
Expand All @@ -405,15 +406,16 @@ void KDTreeGrid::command(std::string s)
if (s == "set repart local") {
local_repart = true;
std::cout << "Setting local repart" << std::endl;
} else if (s == "set repart global") {
}
else if (s == "set repart global") {
local_repart = false;
std::cout << "Setting global repart" << std::endl;
} else {
}
else {
throw UnknwonCommandError("No such command: `" + s + "'");
}
}


global_cell_index_type
KDTreeGrid::global_hash(local_or_ghost_cell_index_type cellidx)
{
Expand Down

0 comments on commit 6113b26

Please sign in to comment.