Peano
Loading...
Searching...
No Matches
Hardcoded.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
7#include "tarch/logging/Log.h"
8
9#include <queue>
10#include <initializer_list>
11
12
13
14namespace toolbox {
15 namespace loadbalancing {
16 namespace strategies {
17 class Hardcoded;
18 }
19 }
20}
21
22
32 public:
52 std::initializer_list<int> timeStamps,
53 std::initializer_list<int> splittingTrees,
54 std::initializer_list<int> numberOfCells,
55 std::initializer_list<int> destinationRanks,
56 std::initializer_list<peano4::SplitInstruction::Mode> modes,
57 bool handOutOnePartitionPerCore
58 );
59
60 virtual void finishStep() override;
61
62 virtual void finishSimulation() override;
63 private:
65
66 struct Split {
72 Split( const Split& split );
73 Split( int timeStamp_, int splittingTree_, int numberOfCells_, int destinationRank_, peano4::SplitInstruction::Mode mode_ );
74 };
75
76 std::queue< Split > _splits;
77
83
85};
86
87
88
Log Device.
Definition Log.h:516
Hardcoded domain decomposition strategy.
Definition Hardcoded.h:31
virtual void finishStep() override
Finish the step.
Definition Hardcoded.cpp:72
int _currentTimeStamp
Time stamp might be the slightly wrong wording.
Definition Hardcoded.h:82
Hardcoded(std::initializer_list< int > timeStamps, std::initializer_list< int > splittingTrees, std::initializer_list< int > numberOfCells, std::initializer_list< int > destinationRanks, std::initializer_list< peano4::SplitInstruction::Mode > modes, bool handOutOnePartitionPerCore)
Definition Hardcoded.cpp:15