From 5d00cae2c9a0950fb6ade938597b6bcdacb48f99 Mon Sep 17 00:00:00 2001 From: shahramn Date: Mon, 26 Aug 2024 15:34:23 +0100 Subject: [PATCH] Testing: gts_compare --- tests/gts_compare.sh | 1 + tools/gts_compare.cc | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/tests/gts_compare.sh b/tests/gts_compare.sh index 14592d6ea..c4c217b8d 100755 --- a/tests/gts_compare.sh +++ b/tests/gts_compare.sh @@ -71,6 +71,7 @@ set -e [ $status -eq 1 ] # Add correct blocklist ${tools_dir}/gts_compare -b GG $gts_file $fGtsTmp +${tools_dir}/gts_compare -b CCCC,GG $gts_file $fGtsTmp #---------------------------------------------------- # Compare using -c diff --git a/tools/gts_compare.cc b/tools/gts_compare.cc index 3a084893d..dad70feac 100644 --- a/tools/gts_compare.cc +++ b/tools/gts_compare.cc @@ -17,8 +17,6 @@ grib_option grib_options[] = { { "d", 0, "Write different messages on files\n", 0, 1, 0 }, { "T:", 0, 0, 1, 0, "T" }, /* GTS */ { "c:", 0, 0, 0, 1, 0 }, - { "S:", "start", "First field to be processed.\n", 0, 1, 0 }, - { "E:", "end", "Last field to be processed.\n", 0, 1, 0 }, { "a", 0, "-c option modifier. The keys listed with the option -c will be added to the list of keys compared without -c.\n", 0, 1, 0 }, /*{"R:",0,0,0,1,0},*/ /*{"A:",0,0,0,1,0},*/ @@ -87,9 +85,6 @@ static int write_count = 0; grib_handle* global_handle = NULL; int counter = 0; -int start = -1; -int end = -1; - static void write_message(grib_handle* h, const char* str) { @@ -155,11 +150,6 @@ int grib_tool_init(grib_runtime_options* options) grib_context* context = grib_context_get_default(); options->strict = 1; - if (grib_options_on("S:")) - start = atoi(grib_options_get_option("S:")); - - if (grib_options_on("E:")) - end = atoi(grib_options_get_option("E:")); if (grib_options_on("f")) force = 1; @@ -537,10 +527,6 @@ static int compare_values(const grib_runtime_options* options, grib_handle* h1, return err2; break; - case GRIB_TYPE_DOUBLE: - Assert(!"GTS cannot contain keys of type DOUBLE"); - break; - case GRIB_TYPE_BYTES: // We do not want to compare the message itself return 0;