mirror of https://github.com/ecmwf/eccodes.git
Reformatting
This commit is contained in:
parent
784279afff
commit
4f506043f5
|
@ -175,7 +175,7 @@ static int get_major_minor_axes(grib_handle* h, double* pMajor, double* pMinor)
|
|||
/* Caller must have allocated enough space in the 'result' argument */
|
||||
static int get_earth_shape(grib_handle* h, char* result)
|
||||
{
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
double major = 0, minor = 0;
|
||||
if ((err = get_major_minor_axes(h, &major, &minor)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
@ -188,7 +188,7 @@ static int get_earth_shape(grib_handle* h, char* result)
|
|||
|
||||
static int proj_regular_latlon(grib_handle* h, char* result)
|
||||
{
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
char shape[64] = {0,};
|
||||
if ((err = get_earth_shape(h, shape)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
@ -198,7 +198,7 @@ static int proj_regular_latlon(grib_handle* h, char* result)
|
|||
|
||||
static int proj_lambert_conformal(grib_handle* h, char* result)
|
||||
{
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
char shape[64] = {0,};
|
||||
double LoVInDegrees = 0, LaDInDegrees = 0, Latin1InDegrees = 0, Latin2InDegrees = 0;
|
||||
|
||||
|
@ -219,7 +219,7 @@ static int proj_lambert_conformal(grib_handle* h, char* result)
|
|||
|
||||
static int proj_lambert_azimuthal_equal_area(grib_handle* h, char* result)
|
||||
{
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
char shape[64] = {0,};
|
||||
double standardParallel = 0, centralLongitude = 0;
|
||||
|
||||
|
@ -236,11 +236,11 @@ static int proj_lambert_azimuthal_equal_area(grib_handle* h, char* result)
|
|||
|
||||
static int proj_polar_stereographic(grib_handle* h, char* result)
|
||||
{
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
double centralLongitude = 0, centralLatitude = 0;
|
||||
int has_northPole = 0;
|
||||
long projectionCentreFlag = 0;
|
||||
char shape[64] = {0,};
|
||||
char shape[64] = {0,};
|
||||
|
||||
if ((err = get_earth_shape(h, shape)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
@ -260,7 +260,7 @@ static int proj_mercator(grib_handle* h, char* result)
|
|||
{
|
||||
int err = 0;
|
||||
double LaDInDegrees = 0;
|
||||
char shape[64] = {0,};
|
||||
char shape[64] = {0,};
|
||||
|
||||
if ((err = grib_get_double_internal(h, "LaDInDegrees", &LaDInDegrees)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
|
|
@ -111,7 +111,7 @@ grib_expression* new_sub_string_expression(grib_context* c, const char* value, s
|
|||
{
|
||||
char v[1024] = {0,};
|
||||
grib_expression_sub_string* e = (grib_expression_sub_string*)grib_context_malloc_clear_persistent(c, sizeof(grib_expression_sub_string));
|
||||
const size_t slen = strlen(value);
|
||||
const size_t slen = strlen(value);
|
||||
/* if (start<0) start+=strlen(value); */
|
||||
|
||||
if (length == 0) {
|
||||
|
@ -123,7 +123,7 @@ grib_expression* new_sub_string_expression(grib_context* c, const char* value, s
|
|||
return NULL;
|
||||
}
|
||||
if (start + length > slen) {
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "Invalid substring: start(=%lu)+length(=%lu) > length('%s'))",start, length,value);
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "Invalid substring: start(=%lu)+length(=%lu) > length('%s'))", start, length, value);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1782,7 +1782,7 @@ int grib_index_dump_file(FILE* fout, const char* filename)
|
|||
return err;
|
||||
f = file;
|
||||
while (f) {
|
||||
grib_file *prev = f;
|
||||
grib_file* prev = f;
|
||||
fprintf(fout, "GRIB File: %s\n", f->name);
|
||||
grib_context_free(c, f->name);
|
||||
f = f->next;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
leak:tools/grib_filter.c
|
||||
leak:tools/bufr_filter.c
|
||||
leak:tools/bufr_dump.c
|
||||
leak:tools/bufr_compare.c
|
||||
leak:tools/gts_filter.c
|
||||
leak:src/action_class_rename.c
|
||||
leak:tools/grib_to_netcdf.c
|
||||
|
|
Loading…
Reference in New Issue