Skip to content

Allow setting tolerance for last timestep in SystemIntegrator manually #1570

@annawendler

Description

@annawendler

Motivation / Current Behaviour

In SystemIntegrator::advance, the value eps is used to determine the termination criterion of the time stepping scheme. With this it is ensured that the scheme reaches tmax up to a tolerance. The value of eps is set to the zero tolerance. In time stepping schemes with fixed time step size with a small time step size, this can lead to an additional time step at the end and thus to higher total number of time steps than expected. Setting eps to a larger value resolves this issue.

Enhancement description

Keep the default as is but allow changing eps manually.

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::improvementCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.

Type

No type
No fields configured for issues without a type.

Projects

Status

🏗 Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions