Fix broken laplam (grib_accessor_class_data_g2bifourier_packing.c).

This commit is contained in:
Philippe Marguinaud 2021-02-24 19:03:12 +01:00
parent e0376b72d9
commit f010d20b0d
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ static double laplam(bif_trunc_t* bt, const double val[])
}
lmax = l;
if (lmax == 0)
return 0.;
/*
* Now, itab2 contains all possible values of i*i+j*j, and itab1 contains
* the rank of all i*i+j*j