AMReX-Astro / Microphysics

common astrophysical microphysics routines with interfaces for the different AMReX codes
https://amrex-astro.github.io/Microphysics
Other
34 stars 33 forks source link

Add autodiff machinery and docs #1593

Closed yut23 closed 2 months ago

yut23 commented 2 months ago

This adds a new header, microphysics_autodiff.H, which includes the autodiff library and sets things up for use with AMReX. It also provides the admath namespace, which is a drop-in replacement for std for functions from <cmath>, and works on both autodiff types and normal numeric types.