Skip to content

fix: fix values being promoted to Float64 in problem construction #3561

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

Merged
merged 24 commits into from
Apr 16, 2025

Conversation

AayushSabharwal
Copy link
Member

Close #3553

@@ -8,7 +8,7 @@ function generate_initializesystem(sys::AbstractTimeDependentSystem;
pmap = Dict(),
initialization_eqs = [],
guesses = Dict(),
default_dd_guess = 0.0,
default_dd_guess = Bool(0),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just false?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false makes the kwarg seem like a flag, when it is actually a value. So I opted for Bool(0) just to make it clearer.

@AayushSabharwal
Copy link
Member Author

Finally

@AayushSabharwal AayushSabharwal merged commit e574fb3 into SciML:master Apr 16, 2025
41 of 44 checks passed
@AayushSabharwal AayushSabharwal deleted the as/initial-promote branch April 16, 2025 17:28
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.

Float32 types are automatically converted to Float64
2 participants