mirror of https://github.com/ecmwf/eccodes.git
ECC-399: Detecting NaN values when encoding grib
This commit is contained in:
parent
35d12dd2e5
commit
359f9e6442
|
@ -278,12 +278,12 @@ static int pack_double(grib_accessor* a, const double* cval, size_t *len)
|
||||||
return GRIB_SUCCESS;
|
return GRIB_SUCCESS;
|
||||||
break;
|
break;
|
||||||
case GRIB_INVALID_BPV:
|
case GRIB_INVALID_BPV:
|
||||||
grib_context_log(a->context,GRIB_LOG_ERROR,"unable to compute packing parameters\n");
|
grib_context_log(a->context,GRIB_LOG_ERROR,"unable to compute packing parameters. Invalid bits per value\n");
|
||||||
return ret;
|
return ret;
|
||||||
case GRIB_SUCCESS:
|
case GRIB_SUCCESS:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
grib_context_log(a->context,GRIB_LOG_FATAL,"unable to compute packing parameters\n");
|
grib_context_log(a->context,GRIB_LOG_ERROR,"unable to compute packing parameters\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue