Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for shorter time steps than 0.5 #283

Closed
wants to merge 4 commits into from

Conversation

mleot
Copy link

@mleot mleot commented Mar 22, 2024

It is currently not possible to set timesteps shorter than 0.5 due to machine code precision for numbers smaller than 0.5, and the statement to ensure t is divisible by dt without a remainder.

This PR is suggesting to remove this statement, and allow for timesteps that are small than 0.5 seconds.

I added rounding statements to t and dt for the generation of the protocol, but I am unsure if this is nessesary.

@TomTranter
Copy link
Collaborator

Fixed by #289

@TomTranter TomTranter closed this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants