Peano
Loading...
Searching...
No Matches
SpreadOutOnceGridStagnates.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5
6
7#include "tarch/logging/Log.h"
8
10
11#include <map>
12
14
16
17
18namespace toolbox {
19 namespace loadbalancing {
20 namespace strategies {
21 class SpreadOutOnceGridStagnates;
22 }
23 }
24}
25
26
27
28
29
46 public:
48 virtual ~SpreadOutOnceGridStagnates() override = default;
49
50 virtual void finishStep() override;
51 private:
53
56
61 int getNumberOfTreesPerRank() const;
62
64
65 void triggerSplit( int numberOfCells, int targetRank );
66};
67
Log Device.
Definition Log.h:516
Abstract interface to tweak the behaviour of the recursive subdivision.
Cost metrics based solely on cell counts.
Definition CellCount.h:23
SpreadOutOnceGridStagnates(Configuration *configuration=new DefaultConfiguration(), CostMetrics *costMetrics=new toolbox::loadbalancing::metrics::CellCount())
int getNumberOfTreesPerRank() const
Return 0 if the load balancing should not split (yet) and otherwise return number of splits required.