Skip to content

Commit

Permalink
Testing: debug dumper for BUFR (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Feb 19, 2025
1 parent 01bd0fe commit bfbadbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/dumper/grib_dumper_class_default.cc
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,13 @@ void Default::dump_section(grib_accessor* a, grib_block_of_accessors* block)
int is_default_section = 0;
char* upper = NULL;
char *p = NULL, *q = NULL;

if (!strncmp(a->name_, "section", 7))
is_default_section = 1;

if (strcmp(a->name_, "groupNumber") == 0)
return;

if (!strcmp(a->creator_->op_, "bufr_group")) {
dump_long(a, NULL);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/codes_dump_content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ done
infile="$data_dir/bufr/pgps_110.bufr"
${test_dir}/codes_dump_content json $infile > $temp
${test_dir}/codes_dump_content default $infile > $temp
${test_dir}/codes_dump_content debug $infile > $temp
# ${test_dir}/codes_dump_content debug $infile > $temp

# Empty mode should use 'default'
infile="$data_dir/sample.grib2"
Expand Down

0 comments on commit bfbadbb

Please sign in to comment.