Skip to content

Commit

Permalink
integrator enable rebalance_coarsest
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Jan 16, 2024
1 parent 400e98d commit d10715f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/amr/wrappers/integrator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ namespace PHARE::amr
template<std::size_t _dimension>
class Integrator
{
bool static constexpr rebalance_coarsest = false;

public:
static constexpr std::size_t dimension = _dimension;

double advance(double dt) { return timeRefIntegrator_->advanceHierarchy(dt); }
double advance(double dt)
{
return timeRefIntegrator_->advanceHierarchy(dt, rebalance_coarsest);
}

void initialize() { timeRefIntegrator_->initializeHierarchy(); }

Expand Down Expand Up @@ -77,7 +82,8 @@ Integrator<_dimension>::Integrator(
auto loadBalancer = std::make_shared<SAMRAI::mesh::CascadePartitioner>(
SAMRAI::tbox::Dimension{dimension}, "LoadBalancer");

loadBalancer->setSAMRAI_MPI(SAMRAI::tbox::SAMRAI_MPI::getSAMRAIWorld()); // TODO Is it really needed ?
loadBalancer->setSAMRAI_MPI(
SAMRAI::tbox::SAMRAI_MPI::getSAMRAIWorld()); // TODO Is it really needed ?

auto refineDB = getUserRefinementBoxesDatabase<dimension>(dict["simulation"]["AMR"]);
auto standardTag = std::make_shared<SAMRAI::mesh::StandardTagAndInitialize>(
Expand Down

0 comments on commit d10715f

Please sign in to comment.