Commit 6c445a9a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefGrid: bug fix for generic grids with nx or ny > 0

parent a4c3895a
......@@ -2563,13 +2563,13 @@ void cdfDefGrid(stream_t *streamptr, int gridID)
else
{
int lx = 0, ly = 0;
if ( gridInqXsize(gridID) > 0 && gridInqXvals(gridID, NULL) > 0 )
if ( gridInqXsize(gridID) > 0 /*&& gridInqXvals(gridID, NULL) > 0*/ )
{
cdfDefXaxis(streamptr, gridID);
lx = 1;
}
if ( gridInqYsize(gridID) > 0 && gridInqYvals(gridID, NULL) > 0 )
if ( gridInqYsize(gridID) > 0 /*&& gridInqYvals(gridID, NULL) > 0*/ )
{
cdfDefYaxis(streamptr, gridID);
ly = 1;
......
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