Commit a850c3f0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Changed 'int nmiss' to 'size_t nmiss'.

parent 541a1d7f
......@@ -160,7 +160,7 @@ void *Adisit(void *argument)
int varID, levelID;
int offset;
int i;
int nmiss;
size_t nmiss;
int thoID = -1, saoID = -1;
char varname[CDI_MAX_NAME], stdname[CDI_MAX_NAME];
double pin = -1;
......
......@@ -391,7 +391,7 @@ static
void *after_readTimestep(void *arg)
{
int varID, gridID, zaxisID, levelID, timeID;
int nmiss;
size_t nmiss;
RARG *rarg = (RARG *) arg;
int nrecs = rarg->nrecs;
......
......@@ -37,7 +37,7 @@ void *Arith(void *argument)
{
enum {FILL_NONE, FILL_TS, FILL_VAR, FILL_VARTS, FILL_FILE};
int filltype = FILL_NONE;
int nmiss;
size_t nmiss;
int nrecs, nvars = 0;
int nlevels2 = 1;
int varID, levelID;
......
......@@ -72,7 +72,7 @@ int *fill_vars(int vlistID)
void *Arithc(void *argument)
{
int nmiss;
size_t nmiss;
int nrecs;
int varID, levelID;
......
......@@ -73,7 +73,7 @@ void *Arithdays(void *argument)
int nrecs;
int varID, levelID;
int year, month, day;
int nmiss;
size_t nmiss;
double rconst;
cdoInitialize(argument);
......
......@@ -36,7 +36,7 @@ void *Arithlat(void *argument)
int gridID0 = -1;
int nrecs;
int varID, levelID;
int nmiss;
size_t nmiss;
long i;
char units[CDI_MAX_NAME];
double *scale = NULL;
......
......@@ -83,7 +83,7 @@ void *CDIread(void *argument)
{
int memtype = CDO_Memtype;
int varID, levelID;
int nmiss;
size_t nmiss;
int nrecs;
int filetype = -1, datatype = -1;
int nruns = 1;
......
......@@ -30,7 +30,7 @@ void *CDItest(void *argument)
{
int nrecs;
int varID, levelID;
int nmiss;
size_t nmiss;
int max_copy = 3;
double s_utime, s_stime;
double e_utime, e_stime;
......
......@@ -3680,7 +3680,7 @@ static void read_record(int streamID, struct mapping vars[], int vlistID)
int latdim = gridInqYsize(gridID);
int levdim = zaxisInqSize(zaxisID);
int chardim = gridsize/latdim;
int nmiss;
size_t nmiss;
pstreamReadRecord(streamID, buffer, &nmiss);
for ( size_t i = 0; i < gridsize; i++ )
{
......
......@@ -364,7 +364,7 @@ void *CMOR_lite(void *argument)
{
int nrecs;
int varID, levelID;
int nmiss;
size_t nmiss;
bool delvars = false;
double missval;
......
......@@ -36,7 +36,7 @@ void *Cat(void *argument)
int streamID2 = CDI_UNDEFID;
int vlistID2 = CDI_UNDEFID;
int taxisID2 = CDI_UNDEFID;
int nmiss;
size_t nmiss;
double tw0 = 0, tw = 0;
double *array = NULL;
......
......@@ -48,7 +48,7 @@ void *Change(void *argument)
int chcode = 0;
int param;
int code, tabnum, i;
int nmiss;
size_t nmiss;
int nfound;
int nzaxis, zaxisID1, zaxisID2, k, nlevs, index;
double chlevels[MAXARG];
......
......@@ -32,7 +32,7 @@ void *Change_e5slm(void *argument)
char name[CDI_MAX_NAME];
int nrecs;
int varID, levelID;
int nmiss;
size_t nmiss;
cdoInitialize(argument);
......
......@@ -127,7 +127,7 @@ void *Cloudlayer(void *argument)
bool zrev = false;
int i;
int offset;
int nmiss;
size_t nmiss;
int aclcacID = -1;
int nvars2 = 0;
int aclcac_code_found = 0;
......
......@@ -29,7 +29,7 @@ typedef struct
int streamID;
int vlistID;
int gridID;
int nmiss;
size_t nmiss;
int gridsize;
int *gridindex;
double *array;
......@@ -535,7 +535,7 @@ void *Collgrid(void *argument)
if ( vars[varID2] )
{
int nmiss = 0;
size_t nmiss = 0;
for ( int i = 0; i < gridsize2; i++ )
if ( DBL_IS_EQUAL(array2[i], missval) ) nmiss++;
......
......@@ -167,7 +167,7 @@ int com_stat(const char *arg)
else
{
int i;
int nmiss;
size_t nmiss;
int gridsize;
double fmin = 1.e50 , fmax = -1.e50, fmean = 0;
counter_t counter;
......@@ -321,7 +321,7 @@ void command_init()
void *Command(void *argument)
{
// int recID, varID, levelID;
// int nmiss;
// size_t nmiss;
double s_utime, s_stime;
double e_utime, e_stime;
double c_cputime = 0, c_usertime = 0, c_systime = 0;
......
......@@ -179,7 +179,7 @@ void *Comp(void *argument)
for ( int recID = 0; recID < nrecs; recID++ )
{
int nmiss1;
size_t nmiss1;
pstreamInqRecord(streamIDx1, &varID, &levelID);
pstreamReadRecord(streamIDx1, arrayx1, &nmiss1);
......@@ -187,7 +187,7 @@ void *Comp(void *argument)
{
if ( recID == 0 || filltype != FILL_REC )
{
int nmiss2;
size_t nmiss2;
pstreamInqRecord(streamIDx2, &varID, &levelID);
pstreamReadRecord(streamIDx2, arrayx2, &nmiss2);
}
......@@ -266,7 +266,7 @@ void *Comp(void *argument)
cdoAbort("Operator not implemented!");
}
int nmiss3 = 0;
size_t nmiss3 = 0;
for ( int i = 0; i < gridsize; i++ )
if ( DBL_IS_EQUAL(array3[i], missval1) ) nmiss3++;
......
......@@ -37,7 +37,7 @@ void *Compc(void *argument)
{
int nrecs;
int varID, levelID;
int nmiss, nmiss2;
size_t nmiss, nmiss2;
int i;
double missval;
int rc_is_missval;
......
......@@ -28,7 +28,7 @@ void *Complextorect(void *argument)
int varID, levelID;
int i;
int datatype;
int nmiss;
size_t nmiss;
cdoInitialize(argument);
......
......@@ -35,7 +35,7 @@ void *Cond(void *argument)
int nrecs, nrecs2, nvars = 0, nlev;
int varID, levelID;
int offset;
int nmiss1, nmiss2, nmiss3;
size_t nmiss1, nmiss2, nmiss3;
int i;
double missval1 = -9.E33;
double missval2 = -9.E33;
......
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