Skip to content

Commit 2f2d012

Browse files
author
Martin D. Weinberg
committed
Missing removal of 2Pi factors from PolarBasis
1 parent 321dcd8 commit 2f2d012

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PolarBasis.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ void * PolarBasis::determine_coefficients_thread(void * arg)
401401
{
402402
// For biorthogonal density component and normalization
403403
//
404-
constexpr double norm0 = 2.0*M_PI * 0.5*M_2_SQRTPI/M_SQRT2;
405-
constexpr double norm1 = 2.0*M_PI * 0.5*M_2_SQRTPI;
404+
constexpr double norm0 = 0.5*M_2_SQRTPI/M_SQRT2;
405+
constexpr double norm1 = 0.5*M_2_SQRTPI;
406406

407407
double r, r2, facL=1.0, fac1, fac2, phi, mass;
408408
double xx, yy, zz;
@@ -1044,8 +1044,8 @@ void PolarBasis::multistep_update(int from, int to, Component *c, int i, int id)
10441044

10451045
// For biorthogonal density component and normalization
10461046
//
1047-
constexpr double norm0 = 2.0*M_PI * 0.5*M_2_SQRTPI/M_SQRT2;
1048-
constexpr double norm1 = 2.0*M_PI * 0.5*M_2_SQRTPI;
1047+
constexpr double norm0 = 0.5*M_2_SQRTPI/M_SQRT2;
1048+
constexpr double norm1 = 0.5*M_2_SQRTPI;
10491049

10501050
double mass = c->Mass(i) * component->Adiabatic();
10511051

0 commit comments

Comments
 (0)