diff options
author | 2021-04-05 14:04:43 -0700 | |
---|---|---|
committer | 2021-04-05 14:04:43 -0700 | |
commit | bc38a8fbd654cce8431a0fd720ca57a073ba050d (patch) | |
tree | 8a77fc69f2aa761fcd282fedbac64d9cec91603b /Source/Parser/wp_parser.l | |
parent | 72cda15299dbc070e0b33bdfb573e2d9dbd96a87 (diff) | |
download | WarpX-bc38a8fbd654cce8431a0fd720ca57a073ba050d.tar.gz WarpX-bc38a8fbd654cce8431a0fd720ca57a073ba050d.tar.zst WarpX-bc38a8fbd654cce8431a0fd720ca57a073ba050d.zip |
Parser: Bessel Function (J_n) (#1854)
* Parser: Bessel Function (J_n)
Add the Bessel Function of the First Kind (J_n) to the parser.
* Parser: regenerate
* Parser: No jn for DPC++ (yet)
* Parser: no jnf for Apple
At least on AppleClang and also seen in flang source-code, we
just call the double variant of `jn` instead of using a specialized
call to `jnf`.
This might be less efficient than needed with Intel on Apple, but
I don't have a system to test this on at the moment and this is thus
a save bet for compile stability.
Co-authored-by: Tools <warpx@lbl.gov>
Diffstat (limited to 'Source/Parser/wp_parser.l')
-rw-r--r-- | Source/Parser/wp_parser.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Parser/wp_parser.l b/Source/Parser/wp_parser.l index 0c76f4e4a..e208432a6 100644 --- a/Source/Parser/wp_parser.l +++ b/Source/Parser/wp_parser.l @@ -56,6 +56,7 @@ EXP ([Ee][-+]?[0-9]+) "or" { wxparserlval.f2 = WP_OR; return OR;} "pow" { wxparserlval.f2 = WP_POW; return F2; } "heaviside" { wxparserlval.f2 = WP_HEAVISIDE; return F2; } +"jn" { wxparserlval.f2 = WP_JN; return F2; } "min" { wxparserlval.f2 = WP_MIN; return F2; } "max" { wxparserlval.f2 = WP_MAX; return F2; } |