Skip to content

Commit e364889

Browse files
committed
relax over-eager sanity check
1 parent 7ce3a48 commit e364889

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libsharp/sharp_ylmgen_c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* Helper code for efficient calculation of Y_lm(theta,phi=0)
2727
*
28-
* Copyright (C) 2005-2012 Max-Planck-Society
28+
* Copyright (C) 2005-2014 Max-Planck-Society
2929
* Author: Martin Reinecke
3030
*/
3131

@@ -48,7 +48,7 @@ void sharp_Ylmgen_init (sharp_Ylmgen_C *gen, int l_max, int m_max, int spin)
4848
gen->lmax = l_max;
4949
gen->mmax = m_max;
5050
UTIL_ASSERT(spin>=0,"incorrect spin: must be nonnegative");
51-
UTIL_ASSERT(m_max>=spin,"incorrect m_max: must be >= spin");
51+
UTIL_ASSERT(l_max>=spin,"incorrect l_max: must be >= spin");
5252
UTIL_ASSERT(l_max>=m_max,"incorrect l_max: must be >= m_max");
5353
gen->s = spin;
5454
UTIL_ASSERT((sharp_minscale<=0)&&(sharp_maxscale>0),

0 commit comments

Comments
 (0)