AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
554 stars 353 forks source link

Adding computation of complete elliptic integrals into amrex::Math so… #4151

Closed clarkse closed 2 months ago

clarkse commented 2 months ago

… that it can be executed on accelerator devices.

Summary

Currently the parser recognizes comp_ellint_1 and comp_ellint_2, but only executes on CPU when compiled with gcc. An implementation of the calculations have been added to amrex::Math to compute these quantities using the method described here: https://dlmf.nist.gov/19.8

It is a quadratically converging iterative method that is compatible with device execution.

Gauss's Arithmetic-Geometric Mean  

Additional background

Checklist

The proposed changes: