Commit 80b9fc2f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Eliminate redundant code.

parent 53377768
......@@ -5043,17 +5043,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if ( ncvars[ncvarid].gridtype == UNDEFID ||
ncvars[ncvarid].gridtype == GRID_GENERIC )
{
if ( islat && islon )
{
if ( isGaussGrid(ysize, yinc, grid->yvals) )
{
ncvars[ncvarid].gridtype = GRID_GAUSSIAN;
grid->np = (int)(ysize/2);
}
else
ncvars[ncvarid].gridtype = GRID_LONLAT;
}
else if ( islat && !islon && xsize == 0 )
if ( islat && (islon || xsize == 0) )
{
if ( isGaussGrid(ysize, yinc, grid->yvals) )
{
......
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