Skip to content

Clamping the step-size #8

@ivan-pi

Description

@ivan-pi

qa = 1.0_wp/(qa+1.0e-10_wp)
if (qa > 3.0_wp) qa = 3.0_wp

The step size is controlled by the factor qa (the ratio $h_{i+1}/h_i$), and could be written more succintly as:

qa = 1.0_wp/((4*q)**0.25_wp + eps)
qa = min(qa,3.0_wp)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions