Skip to content

Commit

Permalink
Update to normalization scheme for 2-d bases
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Nov 15, 2024
1 parent 203cade commit 6817c59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PolarBasis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ void * PolarBasis::determine_coefficients_thread(void * arg)
{
// For biorthogonal density component and normalization
//
constexpr double norm0 = 0.5*M_2_SQRTPI/M_SQRT2;
constexpr double norm1 = 0.5*M_2_SQRTPI;
constexpr double norm0 = 1.0;
constexpr double norm1 = M_SQRT2;

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

// For biorthogonal density component and normalization
//
constexpr double norm0 = 0.5*M_2_SQRTPI/M_SQRT2;
constexpr double norm1 = 0.5*M_2_SQRTPI;
constexpr double norm0 = 1.0;
constexpr double norm1 = M_SQRT2;

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

Expand Down Expand Up @@ -1323,8 +1323,8 @@ void PolarBasis::compute_multistep_coefficients()

void * PolarBasis::determine_acceleration_and_potential_thread(void * arg)
{
constexpr double norm0 = 0.5*M_2_SQRTPI/M_SQRT2;
constexpr double norm1 = 0.5*M_2_SQRTPI;
constexpr double norm0 = 1.0;
constexpr double norm1 = M_SQRT2;

double r, r0=0.0, phi;
double potr, potz, potl, potp, p, pc, drc, drs, dzc, dzs, ps, dfacp, facdp;
Expand Down

0 comments on commit 6817c59

Please sign in to comment.