 |
Peano
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
5Compilers are simple functions
7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8def translate(graph: Graph, identifier: str, peano_project: "peano4.api.Project") -> List["peano4.api.solversteps.Step"]:
9~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11which take a task graph and yield a series of @ref peano4.api.solversteps.Step instances.
12The peano_project is the Peano project the steps eventually are added to.
13Compilers can use it to add further data to the data model (@ref
14peano4.api.taskgraph.compiler.CellTaskProducerConsumer). It might be None
15if a compiler is used outside of a project, e.g. in unit tests.
17In the Peano terminology, a @see peano4.api.solversteps.Step corresponds to an Observer: for every
18mesh traversal, the traversal automaton is handed an observer that
19distributes the grid events among the action sets tied to it.
21There is one notable exception compared to the plain steps in
22@ref peano4.api.solversteps: Each step is also added an attribute
23has_to_repeat which is a copy from Task's has_to_repeat.
24Consult the description of @ref peano4.api.taskgraph.Task for details on how to use this attribute to make a task repeat until a certain condition is met.
30from .
import Sequential
31from .
import FuseSteps
32from .
import CellTaskProducerConsumer