add sanity checks
This commit is contained in:
parent
9f08cd5ec4
commit
bea64bd65f
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ void sharp_Ylmgen_init (sharp_Ylmgen_C *gen, int l_max, int m_max, int spin)
|
|||
|
||||
gen->lmax = l_max;
|
||||
gen->mmax = m_max;
|
||||
UTIL_ASSERT(spin>=0,"incorrect spin");
|
||||
UTIL_ASSERT(spin>=0,"incorrect spin: must be nonnegative");
|
||||
UTIL_ASSERT(m_max>=spin,"incorrect m_max: must be >= spin");
|
||||
UTIL_ASSERT(l_max>=m_max,"incorrect l_max: must be >= m_max");
|
||||
gen->s = spin;
|
||||
UTIL_ASSERT((sharp_minscale<=0)&&(sharp_maxscale>0),
|
||||
"bad value for min/maxscale");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue