Tools: Fix broken test for GRIB-971

This commit is contained in:
Shahram Najm 2022-04-06 13:22:24 +01:00
parent 362cbe2184
commit 4daeadd13d
4 changed files with 15 additions and 16 deletions

View File

@ -100,9 +100,9 @@ static int onlyListed = 1;
static int headerMode = 0;
static int morein1 = 0;
static int morein2 = 0;
static int listFromCommandLine;
static int listFromCommandLine = 0;
static int verbose = 0;
static int tolerance_factor = 1;
static double tolerance_factor = 1;
static int write_error = 0;
static int write_count = 0;
@ -360,7 +360,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("t:"))
tolerance_factor = atoi(grib_options_get_option("t:"));
tolerance_factor = atof(grib_options_get_option("t:"));
if (grib_options_on("R:")) {
char* sarg = grib_options_get_option("R:");

View File

@ -321,7 +321,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("T:"))
tolerance_factor = atoi(grib_options_get_option("T:"));
tolerance_factor = atof(grib_options_get_option("T:"));
if (grib_options_on("R:")) {
char* sarg = grib_options_get_option("R:");

View File

@ -83,11 +83,10 @@ int onlyListed = 1;
int headerMode = 0;
int morein1 = 0;
int morein2 = 0;
int listFromCommandLine;
int listFromCommandLine = 0;
int verbose = 0;
int tolerance_factor = 1;
double tolerance_factor = 1;
static int write_error = 0;
static int write_count = 0;
grib_handle* global_handle = NULL;
@ -242,7 +241,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("t:"))
tolerance_factor = atoi(grib_options_get_option("t:"));
tolerance_factor = atof(grib_options_get_option("t:"));
{
/* Check for 2nd file being a directory. If so, we assume user is comparing to a file */

View File

@ -89,7 +89,7 @@ static int morein1 = 0;
static int morein2 = 0;
static int listFromCommandLine;
static int verbose = 0;
static int tolerance_factor = 1;
static double tolerance_factor = 1;
static int write_error = 0;
static grib_handle* global_handle = NULL;
static int global_counter = 0;
@ -312,7 +312,7 @@ int grib_tool_init(grib_runtime_options* options)
}
if (grib_options_on("t:"))
tolerance_factor = atoi(grib_options_get_option("t:"));
tolerance_factor = atof(grib_options_get_option("t:"));
{
/* Check for 2nd file being a directory. If so, we assume user is comparing to a file */