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

add 'cellUpdates_ > 0' check #808

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

chongchonghe
Copy link
Contributor

@chongchonghe chongchonghe commented Dec 7, 2024

Description

Add checks if (step == 0) and cellUpdates_ == 0 in the end of a simulation to prevent 'division by zero' error when max_time = 0.0 or max_timesteps = 0.

Related issues

Closes #721

Checklist

Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an x inside the square brackets [ ] in the Markdown source below:

  • I have added a description (see above).
  • I have added a link to any related issues (if applicable; see above).
  • I have read the Contributing Guide.
  • I have added tests for any new physics that this PR adds to the code.
  • (For quokka-astro org members) I have manually triggered the GPU tests with the magic comment /azp run.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug: wrong answer/failure/crash Something isn't working labels Dec 7, 2024
@chongchonghe
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

sonarqubecloud bot commented Dec 7, 2024

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 7, 2024
@chongchonghe chongchonghe added this pull request to the merge queue Dec 7, 2024
Merged via the queue into development with commit e8a181b Dec 7, 2024
23 checks passed
@chongchonghe chongchonghe deleted the chong/fix-tend-equals-zero-error branch December 13, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: wrong answer/failure/crash Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FPE failure when sim.stopTime_ = 0.0
2 participants