Skip to content
Snippets Groups Projects
Commit 04028ce3 authored by Rafael Ravedutti's avatar Rafael Ravedutti
Browse files

Initialize tree weights and neighborhood


Signed-off-by: default avatarRafael Ravedutti <rafaelravedutti@gmail.com>
parent f3e526e5
Branches
Tags
No related merge requests found
...@@ -217,9 +217,9 @@ void BlockForest::rebalance() { ...@@ -217,9 +217,9 @@ void BlockForest::rebalance() {
forest->refresh(); forest->refresh();
} }
this->setBoundingBox();
this->updateWeights(); this->updateWeights();
this->updateNeighborhood(); this->updateNeighborhood();
this->setBoundingBox();
} }
void BlockForest::initialize(int *argc, char ***argv) { void BlockForest::initialize(int *argc, char ***argv) {
...@@ -244,11 +244,16 @@ void BlockForest::initialize(int *argc, char ***argv) { ...@@ -244,11 +244,16 @@ void BlockForest::initialize(int *argc, char ***argv) {
domain, block_config, walberla::Vector3<bool>(true, true, true), procs, ref_level); domain, block_config, walberla::Vector3<bool>(true, true, true), procs, ref_level);
this->info = make_shared<walberla::blockforest::InfoCollection>(); this->info = make_shared<walberla::blockforest::InfoCollection>();
this->setBoundingBox();
if(balance_workload) { if(balance_workload) {
this->initializeWorkloadBalancer(); this->initializeWorkloadBalancer();
this->updateWeights();
forest->refresh();
} }
this->updateWeights();
this->updateNeighborhood();
this->setBoundingBox();
} }
void BlockForest::initializeWorkloadBalancer() { void BlockForest::initializeWorkloadBalancer() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment