Peano
Loading...
Searching...
No Matches
Blacklist.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#include <string>
7#include <map>
8
9
10#include "tarch/logging/Log.h"
11
12
13namespace toolbox {
14 namespace loadbalancing {
15 class Blacklist;
16 }
17}
18
19
20
46 public:
47 Blacklist();
48
61 void update();
62
67 void triggeredSplit( int newParent );
68
69 std::string toString() const;
70
71 bool isBlacklisted( int treeNumber ) const;
72 private:
101
103
111 std::map< int, BlacklistData> _blacklist;
112
113};
114
115
Log Device.
Definition Log.h:516
void triggeredSplit(int newParent)
Inform blacklist that the load balancing has just triggered a split.
Definition Blacklist.cpp:84
void update()
Update blacklist at end of traversal.
Definition Blacklist.cpp:57
static tarch::logging::Log _log
Definition Blacklist.h:102
std::map< int, BlacklistData > _blacklist
Map of trees numbers onto blacklist entries.
Definition Blacklist.h:111
bool isBlacklisted(int treeNumber) const
Definition Blacklist.cpp:51
int lifetime
Remaining steps how long this blacklist entry should stay on.
Definition Blacklist.h:81
BlacklistData(int treeNumber)
New blacklist entry for entry which has not yet been on blacklist before, i.e.
Definition Blacklist.cpp:10
int numberOfUnrefinedCells
Store number of unrefined cells at time of split.
Definition Blacklist.h:86