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

gridDefProj: set grid dimname to proj varname.

parent 9ff87b98
...@@ -1000,6 +1000,13 @@ void gridDefProj(int gridID, int projID) ...@@ -1000,6 +1000,13 @@ void gridDefProj(int gridID, int projID)
{ {
grid_t *gridptr = gridID2Ptr(gridID); grid_t *gridptr = gridID2Ptr(gridID);
gridptr->proj = projID; gridptr->proj = projID;
if ( gridptr->type == GRID_CURVILINEAR )
{
grid_t *projptr = gridID2Ptr(projID);
if ( projptr->x.name[0] ) strcpy(gridptr->x.dimname, projptr->x.name);
if ( projptr->y.name[0] ) strcpy(gridptr->y.dimname, projptr->y.name);
}
} }
......
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