-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support complete elliptic integrals of 1st and 2nd type in Parser #3225
Support complete elliptic integrals of 1st and 2nd type in Parser #3225
Conversation
@aveksler1 I think you might need to add GPU paths here as well. At least CUDA has a lot of special math functions, so you could check if they have what you need. An example of bessel functions we added earlier is in ECP-WarpX/WarpX#1854 |
The CIs failed because we treat warnings as errors. Those warnings seem to come from Bison changing the integer type in various places from int to size_t. We need to suppress those warnings. |
…ed documentation.
I added a separate GPU path and have suppressed the sign comparison warnings. |
@aveksler1 Could you merge development into this so that the Intel CI can pass? |
…ReX-Codes#3225) We want to use complete elliptic integrals from `cmath`, `comp_ellint_1` and `comp_ellint_2` in the parser in order to make it easier to load in magnetic fields from coils in WarpX. I added these to the parser, and tested against the same functions in scipy - the results match. Since clang does not support special functions in C++17 (https://en.cppreference.com/w/cpp/compiler_support/17#C.2B.2B17_library_features) I implemented it for GCC compilers only, following the structure of how `jn` is implemented in the parser. Co-authored-by: Avigdor Veksler <[email protected]>
Summary
We want to use complete elliptic integrals from
cmath
,comp_ellint_1
andcomp_ellint_2
in the parser in order to make it easier to load in magnetic fields from coils in WarpX. I added these to the parser, and tested against the same functions in scipy - the results match.Since clang does not support special functions in C++17 (https://en.cppreference.com/w/cpp/compiler_support/17#C.2B.2B17_library_features) I implemented it for GCC compilers only, following the structure of how
jn
is implemented in the parser.Additional background
Checklist
The proposed changes: