Skip to content

Conversation

@yut23
Copy link
Collaborator

@yut23 yut23 commented May 29, 2025

This PR intentionally changes as little as possible in terms of numeric operations, so the test results are consistent. We can probably clean up a lot of this later -- there are lots more temporary variables than needed, and sneutf_t stores a bunch of powers of xl mostly used for polynomials, which can use Horner's method instead.

@yut23 yut23 force-pushed the autodiff-sneut5 branch from 5cd20d8 to 13862ee Compare June 3, 2025 21:23
When these are passed as normal variables, the universal reference
arguments seem to confuse nvcc, which produces errors like `identifier
"nu_constants::oneth" is undefined in device code`. Explicitly casting
to a prvalue first avoids this.
@yut23 yut23 force-pushed the autodiff-sneut5 branch from 13862ee to ce0d6ce Compare June 3, 2025 22:28
@zingale zingale merged commit b34e896 into AMReX-Astro:development Jun 4, 2025
32 checks passed
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.

2 participants