Skip to content

Strange magic number in timestepping routine #657

@nichollsh

Description

@nichollsh

Feature description

I noticed that the time-steps in some of my PROTEUS simulations were surprisingly small, so the simulations were taking a long time to run. Turns out that the timestep_rel function has an arbitrary factor of 0.01 applied to it.

dtminimum += config.params.dt.minimum_rel * hf_row['Time'] * 0.01 # allow small steps

This should be removed because it's not necessary and confusing.

The time-stepping routine in PROTEUS generally needs an overhaul - something for a later PR. Maybe @egpbos has suggestions?

Preferred solution

Remove 0.01 magic number in timestep.py

Relevant people

@timlichtenberg

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingInterraIssue has been imported to the Interra Board projectPriority 3: standardPriority level 3: medium time criticality or importanceSoftwareRelating to software and implementationimport

    Type

    Projects

    Status

    TBD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions