|
Peano
|
Task Number. More...
#include <TaskNumber.h>

Public Types | |
| enum class | TaskAssociation { TouchVertexFirstTime = 0 , TouchCellFirstTime = 1 , TouchVertexLastTime = 2 , NumberOfEntries = 3 } |
Public Member Functions | |
| TaskNumber (int number0, TaskAssociation number1) | |
| Construct new task number. | |
| std::string | toString () const |
| tarch::multicore::TaskNumber | flatten () const |
| bool | operator< (const TaskNumber &rhs) const |
| Total order on object. | |
| bool | equals (const TaskNumber &rhs) const |
Static Public Attributes | |
| static const TaskNumber | NoOutDependencies |
| Defines the max indices for each entry in TaskNumber. | |
Private Attributes | |
| int | _taskCounter |
| TaskAssociation | _taskAssociation |
Task Number.
A task number in SWIFT is an integer tuple:
We construct our task graph over these tuples and then flatten them down into a normal integer just before we spawn the tasks into the Peano tarch::multicore.
Definition at line 29 of file TaskNumber.h.
|
strong |
| Enumerator | |
|---|---|
| TouchVertexFirstTime | |
| TouchCellFirstTime | |
| TouchVertexLastTime | |
| NumberOfEntries | |
Definition at line 31 of file TaskNumber.h.
| swift2::TaskNumber::TaskNumber | ( | int | number0, |
| TaskAssociation | number1 ) |
Construct new task number.
| number0 | Typically the "real" task counter, i.e. a unique number from a very vast range which distinguishes different task types. Pass in tarch::multicore::NoOutDependencies if you want to actually construct the object NoOutDependencies. In this case, the other arguments are ignored. |
| number1 | Typically the type of mesh entity to which the task is tied to. |
| number2 | Typically some kind of species or task type counter. |
| bool swift2::TaskNumber::equals | ( | const TaskNumber & | rhs | ) | const |
| tarch::multicore::TaskNumber swift2::TaskNumber::flatten | ( | ) | const |
| bool swift2::TaskNumber::operator< | ( | const TaskNumber & | rhs | ) | const |
Total order on object.
Required to store task numbers in sets.
| std::string swift2::TaskNumber::toString | ( | ) | const |
|
private |
Definition at line 69 of file TaskNumber.h.
|
private |
Definition at line 68 of file TaskNumber.h.
|
static |
Defines the max indices for each entry in TaskNumber.
Definition at line 55 of file TaskNumber.h.