core.level module¶
- class Level(problem_class: Type[Problem], problem_params: Dict[str, Any], sweeper_class: Type[Sweeper], sweeper_params: Dict[str, Any], level_params: Dict[str, Any], level_index: int)[source]¶
Bases:
FrozenClassLevel class containing all management functionality for a single level
A level contains all data structures, types and objects to perform sweeps on this particular level. It does not know about other levels.
- params¶
parameter object containing the custom parameters passed by the user
- Type:
__Pars
- status¶
status object
- Type:
__Status
- level_index¶
custom string naming this level
- Type:
int
- uend¶
dof values at the right end point of the interval
- attrs = []¶
- property dt: float | None¶
Meta-getter for the time-step size
- Returns:
referencing dt from parameters for convenience
- Return type:
float
- property prob: Problem¶
Getter for the problem
- Returns:
the problem associated to this level
- Return type:
pySDC.Problem.ptype
- reset_level(reset_status: bool = True) None[source]¶
Routine to clean-up the level for the next time step
- Parameters:
reset_status (bool) – Reset the status or only the solution
- Returns:
None
- property sweep: Sweeper¶
Getter for the sweeper
- Returns:
the sweeper associated to this level
- Return type:
pySDC.Sweeper.sweeper
- property tag: Any | None¶
Getter for tag
- Returns:
tag for sending/receiving
- property time: float | None¶
Meta-getter for the current time
- Returns:
referencing status time for convenience
- Return type:
float