Skip to content

Smooth gradients - #45

Merged
cgiovanetti merged 4 commits into
mainfrom
jitter_fix
Oct 23, 2026
Merged

cgiovanetti merged 4 commits into
mainfrom
jitter_fix

Conversation

@cgiovanetti

Copy link
Copy Markdown
Owner

We had two places where we were linearly interpolating; one in the thermo solve and once in the abundance call. The thermo solve now uses dense output and the built-in diffrax hermite interpolater, as well as a new keyword argument n_out which sets the number of points used for the interpolation. Keeping that at 512 doesn't substantially impact our runtime so that's default, though for work using gradients it needs to be 1024 or even higher (cost is 0.1s on M1 mac at n_out=4096).

Switched from linear to log interpolation in abundances for better accuracy there as well.

@cgiovanetti
cgiovanetti merged commit 34f4cbf into main Oct 23, 2026
1 check passed
@cgiovanetti
cgiovanetti deleted the jitter_fix branch October 23, 2026 22:43
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.

1 participant