Fix ewald32_sigma0()
Former-commit-id: 969764c516c0e0e8cc928e18447eb5327791d5bc
This commit is contained in:
parent
adc731029e
commit
1cd4733e85
|
@ -139,7 +139,7 @@ int ewald32_sigma0(complex double *result, double *err,
|
||||||
const double eta, const double k)
|
const double eta, const double k)
|
||||||
{
|
{
|
||||||
qpms_csf_result gam;
|
qpms_csf_result gam;
|
||||||
int retval = complex_gamma_inc_e(-0.5, -k/sq(2*eta), &gam);
|
int retval = complex_gamma_inc_e(-0.5, -sq(k/(2*eta)), &gam);
|
||||||
if (0 != retval)
|
if (0 != retval)
|
||||||
abort();
|
abort();
|
||||||
*result = gam.val * c->legendre0[gsl_sf_legendre_array_index(0,0)] / 2 / M_SQRTPI;
|
*result = gam.val * c->legendre0[gsl_sf_legendre_array_index(0,0)] / 2 / M_SQRTPI;
|
||||||
|
|
Loading…
Reference in New Issue