Commit 1593bde8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

removed unused func variables

parent a3f439ff
......@@ -29,7 +29,6 @@
void *Harmonic(void *argument)
{
static const char *func = "Harmonic";
int gridsize;
int nrecs;
int varID, levelID, recID;
......
......@@ -90,7 +90,6 @@ static void farexpr(field_t *field1, field_t field2, field_t field3, double (*ex
void *Hi(void *argument)
{
static const char *func = "Hi";
int streamID1, streamID2, streamID3, streamID4;
int gridsize;
int nrecs, nrecs2, nrecs3, recID;
......
......@@ -29,7 +29,6 @@
void *Histogram(void *argument)
{
static const char *func = "Histogram";
int HISTCOUNT, HISTSUM, HISTMEAN, HISTFREQ;
int operatorID;
int streamID1, streamID2;
......
......@@ -133,7 +133,6 @@ int nml_control_read(FILE *fp_nml, nml_control_t *nml_control)
static
void read_param(const char *paramfile, param_t *param, int maxparam, int *nparam)
{
static const char *func = "read_param";
FILE *fp;
namelist_t *nml;
int nml_itype, nml_name, nml_pos;
......@@ -238,7 +237,6 @@ void read_param(const char *paramfile, param_t *param, int maxparam, int *nparam
void *IFS2ICON(void *argument)
{
static const char *func = "IFS2ICON";
int streamID1, streamID2 = CDI_UNDEFID;
int nrecs, nvars, newval = -1, tabnum = 0;
int tsID1, recID, varID, levelID;
......
......@@ -93,11 +93,9 @@ void init_amsr_averaged(int vlistID, int gridID, int zaxisID, int nvars)
}
}
static
void read_amsr(FILE *fp, int vlistID, int nvars, double *data[], int *nmiss)
{
static const char *func = "read_amsr_averaged";
int varID, i, gridsize;
unsigned char *amsr_data = NULL;
double xminval, xscale, missval;
......@@ -132,7 +130,6 @@ void read_amsr(FILE *fp, int vlistID, int nvars, double *data[], int *nmiss)
free(amsr_data);
}
static
void write_data(int streamID, int nvars, double *data[], int *nmiss)
{
......@@ -145,7 +142,6 @@ void write_data(int streamID, int nvars, double *data[], int *nmiss)
}
}
static
int getDate(const char *name)
{
......@@ -165,7 +161,6 @@ int getDate(const char *name)
void *Importamsr(void *argument)
{
static const char *func = "Importamsr";
int streamID;
int tsID;
int gridID, zaxisID, taxisID, vlistID;
......
......@@ -46,7 +46,6 @@ void get_dim_vals(dsets_t *pfi, double *vals, int dimlen, int dim)
}
static
void rev_yvals(double *yvals, int ny)
{
......@@ -61,11 +60,9 @@ void rev_yvals(double *yvals, int ny)
}
}
static
int y_is_gauss(double *gridyvals, int ysize)
{
static const char *func = "y_is_gauss";
int lgauss = FALSE;
int i;
......@@ -101,11 +98,9 @@ int y_is_gauss(double *gridyvals, int ysize)
return (lgauss);
}
static
int define_grid(dsets_t *pfi)
{
static const char *func = "define_grid";
int gridID, gridtype;
int nx, ny;
double *xvals, *yvals;
......@@ -140,11 +135,9 @@ int define_grid(dsets_t *pfi)
return (gridID);
}
static
int define_level(dsets_t *pfi, int nlev)
{
static const char *func = "define_level";
int zaxisID = -1;
int nz;
......@@ -185,7 +178,6 @@ int define_level(dsets_t *pfi, int nlev)
void *Importbinary(void *argument)
{
static const char *func = "Importbinary";
int streamID;
int gridID = -1, zaxisID, zaxisIDsfc, taxisID, vlistID;
int i;
......
......@@ -119,7 +119,6 @@ void get_grid_info(double c0, double re, int *nrxp, int *nryp,
*cp = c;
}
static
double det_lon_atovs(double r, double r0, double lts, double c, double re)
{
......@@ -132,7 +131,6 @@ double det_lon_atovs(double r, double r0, double lts, double c, double re)
return (xla);
}
static
double det_lat_atovs(double s, double s0, double lts, double c, double re)
{
......@@ -146,11 +144,9 @@ double det_lat_atovs(double s, double s0, double lts, double c, double re)
return (phi);
}
static
int defLonLatGrid(int nx, int ny, double c0, double lts, double re)
{
static const char *func = "defLonLatGrid";
int gridID;
int nrx, nry, i;
double c;
......@@ -213,12 +209,10 @@ int defLonLatGrid(int nx, int ny, double c0, double lts, double re)
return (gridID);
}
static
int defSinusoidalGrid(int nx, int ny, double xmin, double xmax, double ymin, double ymax,
double dx, double dy, double p1, double p2, double p3, double p4)
{
static const char *func = "defSinusoidalGrid";
int gridID;
int i;
double *xvals, *yvals;
......@@ -250,12 +244,10 @@ int defSinusoidalGrid(int nx, int ny, double xmin, double xmax, double ymin, dou
return (gridID);
}
static
int defLaeaGrid(int nx, int ny, double xmin, double xmax, double ymin, double ymax,
double dx, double dy, double a, double lon0, double lat0)
{
static const char *func = "defLaeaGrid";
int gridID;
int i;
double *xvals, *yvals;
......@@ -289,7 +281,6 @@ int defLaeaGrid(int nx, int ny, double xmin, double xmax, double ymin, double ym
return (gridID);
}
static
int scan_pcs_def(char *pcs_def, char proj[128], double *a, double *lon0, double *lat0)
{
......@@ -344,12 +335,10 @@ int scan_pcs_def(char *pcs_def, char proj[128], double *a, double *lon0, double
return (nfound);
}
#if defined (HAVE_LIBHDF5)
static
int read_geolocation(hid_t loc_id, int nx, int ny, int lprojtype)
{
static const char *func = "read_geolocation";
int gridID = -1;
hid_t grp_id;
hid_t proj_id, region_id;
......@@ -613,12 +602,10 @@ int read_geolocation(hid_t loc_id, int nx, int ny, int lprojtype)
}
#endif
#if defined (HAVE_LIBHDF5)
static
int read_region(hid_t loc_id, int nx, int ny)
{
//static const char *func = "read_region";
int gridID = -1;
hid_t grp_id;
hid_t region_id;
......@@ -757,12 +744,10 @@ int read_region(hid_t loc_id, int nx, int ny)
}
#endif
#if defined (HAVE_LIBHDF5)
static
void read_dataset(hid_t loc_id, const char *name, void *opdata)
{
static const char *func = "read_dataset";
hid_t dset_id, type_id;
hid_t dataspace;
hsize_t dims_out[9]; /* dataset dimensions */
......@@ -1249,7 +1234,6 @@ void read_dataset(hid_t loc_id, const char *name, void *opdata)
}
#endif
#if defined (HAVE_LIBHDF5)
static herr_t
obj_info(hid_t loc_id, const char *name, void *opdata)
......@@ -1371,7 +1355,6 @@ void get_global_att(hid_t file_id, const char *obj_path, int vlistID)
}
#endif
static
int get_vdate(int vlistID)
{
......@@ -1401,7 +1384,6 @@ int get_vdate(int vlistID)
return (vdate);
}
static
void dsets_init(dsets_t *dsets)
{
......@@ -1433,10 +1415,8 @@ void dsets_init(dsets_t *dsets)
}
}
void *Importcmsaf(void *argument)
{
static const char *func = "Importcmsaf";
#if defined (HAVE_LIBHDF5)
int streamID;
int gridID = -1, zaxisID, taxisID, vlistID;
......
......@@ -27,7 +27,6 @@ void init_vars(int vlistID, int gridID, int zaxisID, int nvars)
}
}
static
void init_data(int vlistID, int nvars, double *data[])
{
......@@ -46,7 +45,6 @@ void init_data(int vlistID, int nvars, double *data[])
}
}
static
void write_data(int streamID, int vlistID, int nvars, double *data[])
{
......@@ -71,7 +69,6 @@ void write_data(int streamID, int vlistID, int nvars, double *data[])
}
}
static
int getDate(const char *name)
{
......@@ -92,7 +89,6 @@ int getDate(const char *name)
void *Importobs(void *argument)
{
static const char *func = "Importobs";
int operatorID;
char line[MAX_LINE_LEN];
int streamID;
......
......@@ -219,7 +219,6 @@ void printMap(int nlon, int nlat, double *array, double missval, double min, dou
void *Info(void *argument)
{
static const char *func = "Info";
int INFO, INFOV, INFOP, MAP;
int operatorID;
int i;
......
......@@ -31,7 +31,8 @@
#include "pstream.h"
static int input_iarray(int nval, int *array)
static
int input_iarray(int nval, int *array)
{
int i, n;
int ival = 0;
......@@ -68,7 +69,6 @@ static int input_darray(int nval, double *array)
void *Input(void *argument)
{
static const char *func = "Input";
int INPUT, INPUTSRV, INPUTEXT;
int operatorID;
int varID = 0;
......
......@@ -31,7 +31,6 @@
int genThinoutGrid(int gridID1, int xinc, int yinc)
{
static const char *func = "genThinoutGrid";
int ilon, ilat, olon, olat;
int gridID2, gridtype;
int gridsize1, nlon1, nlat1;
......@@ -90,7 +89,6 @@ int genThinoutGrid(int gridID1, int xinc, int yinc)
int genBoxavgGrid(int gridID1, int xinc, int yinc)
{
static const char *func = "genBoxavgGrid";
int i, j, i1;
int gridID2, gridtype;
int gridsize1, nlon1, nlat1;
......@@ -184,7 +182,6 @@ int genBoxavgGrid(int gridID1, int xinc, int yinc)
void boxavg(field_t *field1, field_t *field2, int xinc, int yinc)
{
static const char *func = "boxavg";
int nlon1, nlat1;
int nlon2, nlat2;
int ilat, ilon;
......@@ -254,7 +251,6 @@ void boxavg(field_t *field1, field_t *field2, int xinc, int yinc)
void thinout(field_t *field1, field_t *field2, int xinc, int yinc)
{
static const char *func = "thinout";
int nlon1, nlat1;
int nlon2, nlat2;
int ilat, ilon, olat, olon;
......@@ -314,7 +310,6 @@ void thinout(field_t *field1, field_t *field2, int xinc, int yinc)
void *Intgrid(void *argument)
{
static const char *func = "Intgrid";
int INTGRID, INTPOINT, INTERPOLATE, BOXAVG, THINOUT;
int operatorID;
int streamID1, streamID2;
......
......@@ -54,7 +54,6 @@ int readnextpos(FILE *fp, int calendar, juldate_t *juldate, double *xpos, double
void *Intgridtraj(void *argument)
{
static const char *func = "Intgridtraj";
int streamID1, streamID2;
int nrecs, nvars, nlevel;
int index, ngrids;
......
......@@ -30,8 +30,9 @@
#include "list.h"
static void interp_lev(int gridsize, double missval, double *vardata1, double *vardata2,
int nlev2, int *lev_idx1, int *lev_idx2, double *lev_wgt1, double *lev_wgt2)
static
void interp_lev(int gridsize, double missval, double *vardata1, double *vardata2,
int nlev2, int *lev_idx1, int *lev_idx2, double *lev_wgt1, double *lev_wgt2)
{
int i, ilev;
int idx1, idx2;
......@@ -85,8 +86,9 @@ static void interp_lev(int gridsize, double missval, double *vardata1, double *v
}
static void gen_weights(int expol, int nlev1, double *lev1, int nlev2, double *lev2,
int *lev_idx1, int *lev_idx2, double *lev_wgt1, double *lev_wgt2)
static
void gen_weights(int expol, int nlev1, double *lev1, int nlev2, double *lev2,
int *lev_idx1, int *lev_idx2, double *lev_wgt1, double *lev_wgt2)
{
int i1, i2;
double val1, val2 = 0;
......@@ -156,7 +158,6 @@ static void gen_weights(int expol, int nlev1, double *lev1, int nlev2, double *l
void *Intlevel(void *argument)
{
static const char *func = "Intlevel";
int INTLEVEL, INTLEVELX;
int operatorID;
int streamID1, streamID2;
......
......@@ -31,7 +31,6 @@
void *Intntime(void *argument)
{
static const char *func = "Intntime";
int streamID1, streamID2;
int nrecs, nvars, nlevel;
int i, nrecords;
......
......@@ -32,7 +32,6 @@
void *Inttime(void *argument)
{
static const char *func = "Inttime";
int streamID1, streamID2;
int nrecs, nvars, nlevel;
int i, nrecords;
......
......@@ -33,7 +33,6 @@
void *Intyear(void *argument)
{
static const char *func = "Intyear";
int streamID1, streamID2;
int nrecs;
int i, iy;
......
......@@ -34,9 +34,9 @@
#include "error.h"
static void invertLonDes(int vlistID)
static
void invertLonDes(int vlistID)
{
static const char *func = "invertLonDes";
int index, ngrids;
int gridID1, gridID2;
int nlat, nlon, size;
......@@ -133,9 +133,9 @@ static void invertLonDes(int vlistID)
}
}
static void invertLatDes(int vlistID)
static
void invertLatDes(int vlistID)
{
static const char *func = "invertLatDes";
int index, ngrids;
int gridID1, gridID2;
int nlat, nlon, size;
......@@ -232,10 +232,9 @@ static void invertLatDes(int vlistID)
}
}
static void invertLonData(double *array1, double *array2, int gridID1)
static
void invertLonData(double *array1, double *array2, int gridID1)
{
static const char *func = "invertLonData";
int nlat, nlon;
int ilat, ilon;
double **field1, **field2;
......@@ -260,10 +259,9 @@ static void invertLonData(double *array1, double *array2, int gridID1)
if ( field2 ) free(field2);
}
static void invertLatData(double *array1, double *array2, int gridID1)
static
void invertLatData(double *array1, double *array2, int gridID1)
{
static const char *func = "invertLatData";
int nlat, nlon;
int ilat;
double **field1, **field2;
......@@ -290,7 +288,6 @@ static void invertLatData(double *array1, double *array2, int gridID1)
void *Invert(void *argument)
{
static const char *func = "Invert";
int INVERTLAT, INVERTLON, INVERTLATDES, INVERTLONDES, INVERTLATDATA, INVERTLONDATA;
int operatorID;
int operfunc1, operfunc2;
......
......@@ -30,9 +30,9 @@
static void invertLevDes(int vlistID)
static
void invertLevDes(int vlistID)
{
static const char *func = "invertLevDes";
int index, nzaxis;
int zaxisID1, zaxisID2;
int nlev;
......@@ -105,7 +105,6 @@ static void invertLevDes(int vlistID)
void *Invertlev(void *argument)
{
static const char *func = "Invertlev";
int INVERTLEV;
int operatorID;
int operfunc;
......
......@@ -114,7 +114,6 @@ void genlonlatbox(double xlon1, double xlon2, double xlat1, double xlat2,
static
void genlonlatgrid(int gridID1, int *lat1, int *lat2, int *lon11, int *lon12, int *lon21, int *lon22)
{
static const char *func = "genlonlatgrid";
int nlon1, nlat1;
double *xvals1, *yvals1;
double xlon1, xlon2, xlat1, xlat2;
......@@ -144,7 +143,8 @@ void genlonlatgrid(int gridID1, int *lat1, int *lat2, int *lon11, int *lon12, in
}
static void genindexbox(int gridID1, int *lat1, int *lat2, int *lon11, int *lon12, int *lon21, int *lon22)
static
void genindexbox(int gridID1, int *lat1, int *lat2, int *lon11, int *lon12, int *lon21, int *lon22)
{
int nlon1, nlat1;
int temp;
......@@ -216,8 +216,9 @@ static void genindexbox(int gridID1, int *lat1, int *lat2, int *lon11, int *lon1
}
static void maskbox(int *mask, int gridID,
int lat1, int lat2, int lon11, int lon12, int lon21, int lon22)
static
void maskbox(int *mask, int gridID,
int lat1, int lat2, int lon11, int lon12, int lon21, int lon22)
{
int nlon, nlat;
int ilat, ilon;
......@@ -233,9 +234,9 @@ static void maskbox(int *mask, int gridID,
}
static void maskregion(int *mask, int gridID, double *xcoords, double *ycoords, int nofcoords)
static
void maskregion(int *mask, int gridID, double *xcoords, double *ycoords, int nofcoords)
{
static const char *func = "maskregion";
int i, j;
int nlon, nlat;
int ilat, ilon;
......@@ -326,7 +327,6 @@ static void maskregion(int *mask, int gridID, double *xcoords, double *ycoords,
void *Maskbox(void *argument)
{
static const char *func = "Maskbox";
int MASKLONLATBOX, MASKINDEXBOX, MASKREGION;
int operatorID;
int streamID1, streamID2;
......
......@@ -30,9 +30,9 @@
#include "pstream.h"
static void mastrfu(int gridID, int zaxisID, double *array1, double *array2)
static
void mastrfu(int gridID, int zaxisID, double *array1, double *array2)
{
static const char *func = "mastrfu";
int nlev;
int nlat;
int ilev, ilat, n;
......@@ -86,7 +86,6 @@ static void mastrfu(int gridID, int zaxisID, double *array1, double *array2)
void *Mastrfu(void *argument)
{
static const char *func = "Mastrfu";
int streamID1, streamID2;
int nrecs;
int tsID, recID, varID, levelID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment