diff --git a/src/grib_iterator_class_gaussian_reduced.cc b/src/grib_iterator_class_gaussian_reduced.cc index 7882cc54a..b21f680b1 100644 --- a/src/grib_iterator_class_gaussian_reduced.cc +++ b/src/grib_iterator_class_gaussian_reduced.cc @@ -22,6 +22,11 @@ MEMBERS = double *las MEMBERS = double *los MEMBERS = long Nj + MEMBERS = long isRotated + MEMBERS = double angleOfRotation + MEMBERS = double southPoleLat + MEMBERS = double southPoleLon + MEMBERS = long disableUnrotate END_CLASS_DEF */ @@ -81,9 +86,9 @@ grib_iterator_class* grib_iterator_class_gaussian_reduced = &_grib_iterator_clas static void init_class(grib_iterator_class* c) { - c->previous = (*(c->super))->previous; - c->reset = (*(c->super))->reset; - c->has_next = (*(c->super))->has_next; + c->previous = (*(c->super))->previous; + c->reset = (*(c->super))->reset; + c->has_next = (*(c->super))->has_next; } /* END_CLASS_IMP */ diff --git a/tests/grib_iterator.sh b/tests/grib_iterator.sh index d09f6ded5..c1f549a53 100755 --- a/tests/grib_iterator.sh +++ b/tests/grib_iterator.sh @@ -49,6 +49,8 @@ ${tools_dir}/grib_get_data "$samp_dir/sh_ml_grib2.tmpl" > $tempText # --------------------------------------------- ${tools_dir}/grib_get_data $samp_dir/reduced_rotated_gg_pl_320_grib1.tmpl > $tempText ${tools_dir}/grib_get_data $samp_dir/reduced_rotated_gg_pl_320_grib2.tmpl > $tempText +ECCODES_DEBUG=-1 ${tools_dir}/grib_get_data ${data_dir}/reduced_gaussian_sub_area.grib2 > $tempText 2>&1 +grep -q "sub-area num points=53564" $tempText # ECC-1642: badly encoded regular grids