-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change field line integration to use diffrax (#610)
Updated comment by @f0uriest - `field_line_integrate` now uses `diffrax` instead of `jax.experimental.ode.odeint` which has been soft deprecated. - Allows better control of bounding box (hard stop of field lines rather than ad-hoc expoential decay) - In practice seems to be a bit faster. `test_plot_poincare` which calls `field_line_integrate` under the hood went from ~65s to ~55s with these changes. Resolves #609
- Loading branch information
Showing
5 changed files
with
118 additions
and
77 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
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
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,4 +1,5 @@ | ||
colorama | ||
diffrax >= 0.4.1 | ||
h5py >= 3.0.0, < 4.0 | ||
interpax >= 0.3.3 | ||
jax[cpu] >= 0.3.2, < 0.5.0 | ||
|
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
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