Commit 5588562e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Change datatype of nmiss to size_t.

parent 4b8cc0ae
......@@ -270,14 +270,13 @@ CdiVariable::sinfo() { std::cout << "code:" << std::endl; }
double *
CdiVariable::getValuesAsPointer()
{
int levelID = 0, tsID = 0, nmiss;
int vdate, vtime, nrecs;
double *field;
nrecs = streamInqTimestep(streamID, tsID);
vdate = taxisInqVdate(taxisID);
vtime = taxisInqVtime(taxisID);
field = (double *) malloc(grid.size*sizeof(double));
int levelID = 0, tsID = 0;
size_t nmiss;
int nrecs = streamInqTimestep(streamID, tsID);
int vdate = taxisInqVdate(taxisID);
int vtime = taxisInqVtime(taxisID);
double *field = (double *) malloc(grid.size*sizeof(double));
streamReadVarSlice(streamID, varID, levelID, field, &nmiss);
return field;
......@@ -286,7 +285,8 @@ CdiVariable::getValuesAsPointer()
double **
CdiVariable::getValuesWithLevelAsPointer(int tsID)
{
int levelID, nmiss, nrecs;
int levelID, nrecs;
size_t nmiss;
double **fieldWithLevel, *field;
nrecs = streamInqTimestep(streamID, tsID);
......
Supports Markdown
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