safety margin
This commit is contained in:
parent
b545c1cfe0
commit
eaa4eaf0c0
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,9 @@ void sharp_Ylmgen_init (sharp_Ylmgen_C *gen, int l_max, int m_max, int spin)
|
|||
gen->mfac[0] = inv_sqrt4pi;
|
||||
for (int m=1; m<=gen->mmax; ++m)
|
||||
gen->mfac[m] = gen->mfac[m-1]*sqrt((2*m+1.)/(2*m));
|
||||
gen->root = RALLOC(double,2*gen->lmax+6);
|
||||
gen->iroot = RALLOC(double,2*gen->lmax+6);
|
||||
for (int m=0; m<2*gen->lmax+6; ++m)
|
||||
gen->root = RALLOC(double,2*gen->lmax+7);
|
||||
gen->iroot = RALLOC(double,2*gen->lmax+7);
|
||||
for (int m=0; m<2*gen->lmax+7; ++m)
|
||||
{
|
||||
gen->root[m] = sqrt(m);
|
||||
gen->iroot[m] = (m==0) ? 0. : 1./gen->root[m];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue