core.Level module

class level(problem_class, problem_params, sweeper_class, sweeper_params, level_params, level_index)[source]

Bases: FrozenClass

Level 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

u

dof values at the nodes

Type:

list of dtype_u

uold

copy of dof values for saving data during restriction)

Type:

list of dtype_u

f

RHS values at the nodes

Type:

list of dtype_f

fold

copy of RHS values for saving data during restriction

Type:

list of dtype_f

tau

FAS correction, allocated via step class if necessary

Type:

list of dtype_u

property dt

Meta-getter for the time-step size

Returns:

referencing dt from parameters for convenience

Return type:

float

property prob

Getter for the problem

Returns:

the problem associated to this level

Return type:

pySDC.Problem.ptype

reset_level(reset_status=True)[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

Getter for the sweeper

Returns:

the sweeper associated to this level

Return type:

pySDC.Sweeper.sweeper

property tag

Getter for tag

Returns:

tag for sending/receiving

property time

Meta-getter for the current time

Returns:

referencing status time for convenience

Return type:

float