Skip to content

Commit

Permalink
Modernisation: Revert deletion of the cargs_
Browse files Browse the repository at this point in the history
  • Loading branch information
joobog committed Oct 21, 2024
1 parent 6b343e2 commit 60a37e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/geo_iterator/grib_iterator_class_gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ int Gen::init(grib_handle* h, grib_arguments* args)
const char* s_rawData = NULL;
const char* s_numPoints = NULL;
long numberOfPoints = 0;
int carg = 1;
int carg_ = 1;

s_numPoints = grib_arguments_get_name(h, args, carg++);
missingValue_ = grib_arguments_get_name(h, args, carg++);
s_rawData = grib_arguments_get_name(h, args, carg++);
s_numPoints = grib_arguments_get_name(h, args, carg_++);
missingValue_ = grib_arguments_get_name(h, args, carg_++);
s_rawData = grib_arguments_get_name(h, args, carg_++);

data_ = NULL;
if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS)
Expand Down
1 change: 1 addition & 0 deletions src/geo_iterator/grib_iterator_class_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Gen : public Iterator
bool has_next() const override;

protected:
int carg_;
double* lats_;
double* lons_;

Expand Down

0 comments on commit 60a37e3

Please sign in to comment.