Peano
Loading...
Searching...
No Matches
exahype2.api.rkfd4.CentralDifferencesWithRungeKutta Namespace Reference

Data Structures

class  CentralDifferencesWithRungeKutta
 Fourth-order central Finite Differences with explicit Runge-Kutta time stepping, realised over a block-structured mesh. More...

Functions

"peano4.api.taskgraph.Task.DataAccess" _access_within_chain ("peano4.api.taskgraph.Task.DataAccess" access, int position, int length)
 Qualifier of one task within a chain of tasks that share cell data.
str _readable_name (str class_name)
 Turn a class name such as AddLopsidedAdvection into the task name "Add lopsided advection".

Function Documentation

◆ _access_within_chain()

"peano4.api.taskgraph.Task.DataAccess" exahype2.api.rkfd4.CentralDifferencesWithRungeKutta._access_within_chain ( "peano4.api.taskgraph.Task.DataAccess" access,
int position,
int length )
protected

Qualifier of one task within a chain of tasks that share cell data.

The original step used the data with the qualifier access. If we split it into a chain of length tasks, the first task keeps the load part of access, the last task keeps the store part, and all tasks in between both load and store the data. The fused traversal merges the qualifiers back into access (peano4.api.taskgraph.compiler.FuseSteps), while a compiler that puts the tasks into different traversals still hands the data on correctly. Temporary data stay temporary: such data rely on the fusion anyway.

Do not use this for face data that several tasks of a chain access: A writing task prevents the compiler from fusing them with the other tasks that use the face data.

Parameters
accesspeano4.api.taskgraph.Task.DataAccess Qualifier of the original, unsplit step.
positionint Position of the task within the chain, starting with zero.
lengthint Number of tasks in the chain.

Definition at line 45 of file CentralDifferencesWithRungeKutta.py.

◆ _readable_name()

str exahype2.api.rkfd4.CentralDifferencesWithRungeKutta._readable_name ( str class_name)
protected

Turn a class name such as AddLopsidedAdvection into the task name "Add lopsided advection".

Definition at line 88 of file CentralDifferencesWithRungeKutta.py.