5 #include <Kokkos_Core.hpp>
13 KOKKOS_INLINE_FUNCTION
void ellip_agm(
double k,
double& ellip_k,
double& ellip_e,
int& vpic_ierr){
15 const double e_tol=1e-8;
19 double my_n = 1.0 - k ;
22 double y_n = sqrt(my_n);
24 for (
int i=0; i<n_order; i++){
26 double x_np1=(x_n+y_n)*0.5;
31 double mx_np1=(mx_n+my_n)*0.5;
32 double rd=sqrt((mx_n-mz_n)*(my_n-mz_n));
33 double my_np1=mz_n+rd;
38 if((abs(x_n-y_n) < e_tol) && (abs(mx_n-my_n) < e_tol)){
KOKKOS_INLINE_FUNCTION void ellip_agm(double k, double &ellip_k, double &ellip_e, int &vpic_ierr)
Definition: elliptics.hpp:13
constexpr double PI
Definition: constants.hpp:8