mirror of https://github.com/ecmwf/eccodes.git
Tools: Fix broken test for GRIB-971
This commit is contained in:
parent
362cbe2184
commit
4daeadd13d
|
@ -100,11 +100,11 @@ static int onlyListed = 1;
|
|||
static int headerMode = 0;
|
||||
static int morein1 = 0;
|
||||
static int morein2 = 0;
|
||||
static int listFromCommandLine;
|
||||
static int verbose = 0;
|
||||
static int tolerance_factor = 1;
|
||||
static int write_error = 0;
|
||||
static int write_count = 0;
|
||||
static int listFromCommandLine = 0;
|
||||
static int verbose = 0;
|
||||
static double tolerance_factor = 1;
|
||||
static int write_error = 0;
|
||||
static int write_count = 0;
|
||||
|
||||
static grib_handle* global_handle = NULL;
|
||||
static int counter = 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:");
|
||||
|
|
|
@ -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:");
|
||||
|
|
|
@ -83,12 +83,11 @@ int onlyListed = 1;
|
|||
int headerMode = 0;
|
||||
int morein1 = 0;
|
||||
int morein2 = 0;
|
||||
int listFromCommandLine;
|
||||
int verbose = 0;
|
||||
int tolerance_factor = 1;
|
||||
static int write_error = 0;
|
||||
|
||||
static int write_count = 0;
|
||||
int listFromCommandLine = 0;
|
||||
int verbose = 0;
|
||||
double tolerance_factor = 1;
|
||||
static int write_error = 0;
|
||||
static int write_count = 0;
|
||||
|
||||
grib_handle* global_handle = NULL;
|
||||
int counter = 0;
|
||||
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue