Commit 099d7609 authored by Pierre Kraemer's avatar Pierre Kraemer

only check resolution level if different from current one

parent 061cc307
......@@ -53,11 +53,14 @@ SphericalHarmonics<Tscalar,Tcoef>::~SphericalHarmonics()
template <typename Tscalar,typename Tcoef>
void SphericalHarmonics<Tscalar,Tcoef>::set_level(int res_level)
{
if (res_level != resolution)
{
assert(res_level >= 0 && res_level < max_resolution);
assert(cpt_instances == 0);
resolution = res_level;
nb_coefs = (resolution + 1) * (resolution + 1);
init_K_tab();
}
}
template <typename Tscalar,typename Tcoef>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment