Commit d4b69438 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Wind: check that numLPE is > 0 (bug fix).

parent cd4335ec
Pipeline #5143 passed with stages
in 21 minutes and 20 seconds
2020-11-12 Uwe Schulzweida
* Wind: check that numLPE is > 0 (bug fix)
2020-10-29 Uwe Schulzweida
* Using CDI library version 1.9.9
......
......@@ -5,7 +5,7 @@
# libtool 2.4.2
AC_PREREQ([2.68])
AC_INIT([cdo], [1.9.9], [https://mpimet.mpg.de/cdo])
AC_INIT([cdo], [1.9.9pl1], [https://mpimet.mpg.de/cdo])
AC_DEFINE_UNQUOTED(CDO, ["$PACKAGE_VERSION"], [CDO version])
......
......@@ -197,7 +197,7 @@ Wind(void *process)
const long nlat = gridInqYsize(gridID1);
const long ntr1 = nlat2ntr(nlat);
if (nlat != (numLPE * 2)) cdoAbort("U and V fields on Gaussian grid are not global!");
if (numLPE > 0 && nlat != (numLPE * 2)) cdoAbort("U and V fields on Gaussian grid are not global!");
if (gridIDsp != -1)
if (ntr1 != gridInqTrunc(gridIDsp)) gridIDsp = -1;
......
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