Commit 84bd6fe8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistGridsizeMax: changed return value to size_t.

parent 9b1f4239
...@@ -524,7 +524,7 @@ int vlistNsubtypes(int vlistID); ...@@ -524,7 +524,7 @@ int vlistNsubtypes(int vlistID);
void vlistDefNtsteps(int vlistID, int nts); void vlistDefNtsteps(int vlistID, int nts);
int vlistNtsteps(int vlistID); int vlistNtsteps(int vlistID);
int vlistGridsizeMax(int vlistID); size_t vlistGridsizeMax(int vlistID);
int vlistGrid(int vlistID, int index); int vlistGrid(int vlistID, int index);
int vlistGridIndex(int vlistID, int gridID); int vlistGridIndex(int vlistID, int gridID);
void vlistChangeGridIndex(int vlistID, int index, int gridID); void vlistChangeGridIndex(int vlistID, int index, int gridID);
......
...@@ -291,7 +291,7 @@ void grb_write_var(stream_t *streamptr, int varID, int memtype, const void *data ...@@ -291,7 +291,7 @@ void grb_write_var(stream_t *streamptr, int varID, int memtype, const void *data
gridID = vlistInqVarGrid(vlistID, varID), gridID = vlistInqVarGrid(vlistID, varID),
zaxisID = vlistInqVarZaxis(vlistID, varID), zaxisID = vlistInqVarZaxis(vlistID, varID),
nlevs = zaxisInqSize(zaxisID); nlevs = zaxisInqSize(zaxisID);
size_t gridsize = gridInqSize(gridID), size_t gridsize = gridInqSize(gridID);
double missval = vlistInqVarMissval(vlistID, varID); double missval = vlistInqVarMissval(vlistID, varID);
size_t chunkLen = gridsize; size_t chunkLen = gridsize;
......
...@@ -1296,15 +1296,15 @@ int vlistInqModel(int vlistID) ...@@ -1296,15 +1296,15 @@ int vlistInqModel(int vlistID)
} }
int vlistGridsizeMax(int vlistID) size_t vlistGridsizeMax(int vlistID)
{ {
int gridsizemax = 0; size_t gridsizemax = 0;
vlist_t *vlistptr = vlist_to_pointer(vlistID); vlist_t *vlistptr = vlist_to_pointer(vlistID);
for ( int index = 0 ; index < vlistptr->ngrids ; index++ ) for ( int index = 0 ; index < vlistptr->ngrids ; index++ )
{ {
int gridID = vlistptr->gridIDs[index]; int gridID = vlistptr->gridIDs[index];
int gridsize = gridInqSize(gridID); size_t gridsize = gridInqSize(gridID);
if ( gridsize > gridsizemax ) gridsizemax = gridsize; if ( gridsize > gridsizemax ) gridsizemax = gridsize;
} }
......
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