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

Fix raise on too large min_step in krylov #2402

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

Ericgig
Copy link
Member

@Ericgig Ericgig commented Apr 23, 2024

Description
The error for too large minimum step was not raised.
The error therefore came later in scipy code and was hard to understand.
Found from https://groups.google.com/g/qutip/c/NUcKnAwpx30/m/7IKDqbNOAgA
Fix the error and add a test for it.

Also added some sanity check on min_step and max_step, which could create infinite loop if min_step = 0 or min_step > max_step.

@Ericgig Ericgig merged commit 12bf7f7 into qutip:master Apr 23, 2024
10 of 12 checks passed
@Ericgig Ericgig deleted the misc.krylov_step_computation branch April 23, 2024 22:04
Ericgig added a commit to Ericgig/qutip that referenced this pull request May 16, 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.

None yet

2 participants