-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Only calculate the summary in inner loop
Calculating the summary both inside and outside the loop in `take_steps!` is inconsistent. This shows up as discontinuities in quantities such as the energy because the kinetic and gravitational energy are out of phase by half a time step. The fix: calculate summaries only in the inner loop. Any summary quantities that depend on the phase should be calculated carefully, potentially with a temporary update to psi by half a time step. BREAKING CHANGE: summary is calculated at slightly different times
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "UltraDark" | ||
uuid = "1c8d022d-dfc0-4b41-80ab-3fc7e88cdfea" | ||
authors = ["Nathan Musoke <[email protected]>"] | ||
version = "0.2.2" | ||
version = "0.3.0" | ||
|
||
[deps] | ||
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eb972e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
eb972e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/56793
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: