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

cdfCopyRecord: removed limit for datasize

parent 29baf790
2014-11-14 Uwe Schulzweida
* cdfCopyRecord: removed limit for datasize
2014-11-12 Uwe Schulzweida
* Version 1.6.5.2 released
......
......@@ -595,20 +595,13 @@ void defineAttributes(int vlistID, int varID, int fileID, int ncvarID)
void cdfCopyRecord(stream_t *streamptr2, stream_t *streamptr1)
{
int memtype = MEMTYPE_DOUBLE;
int memtype = MEMTYPE_DOUBLE;
int vlistID1 = streamptr1->vlistID;
int tsID1 = streamptr1->curTsID;
int recID1 = streamptr1->tsteps[tsID1].curRecID;
int ivarID = streamptr1->tsteps[tsID1].records[recID1].varID;
int gridID = vlistInqVarGrid(vlistID1, ivarID);
int tsID1 = streamptr1->curTsID;
int recID1 = streamptr1->tsteps[tsID1].curRecID;
int ivarID = streamptr1->tsteps[tsID1].records[recID1].varID;
int gridID = vlistInqVarGrid(vlistID1, ivarID);
int datasize = gridInqSize(gridID);
/* bug fix for constant netCDF fields */
if ( datasize < 1048576 ) datasize = 1048576;
double *data = xmalloc((size_t)datasize * sizeof (double));
......
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