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

Added function gridDefUvRelativeToGrid().

parent 4f86c67c
......@@ -4,6 +4,7 @@
2017-02-27 Uwe Schulzweida
* Added function gridDefUvRelativeToGrid()
* gridInqUvRelativeToGrid(): added cgribex support
2017-02-24 Uwe Schulzweida
......
......@@ -964,6 +964,7 @@ void gridChangeType(int gridID, int gridtype);
void gridDefComplexPacking(int gridID, int lpack);
int gridInqComplexPacking(int gridID);
void gridDefUvRelativeToGrid(int gridID, int uvRelativeToGrid);
int gridInqUvRelativeToGrid(int gridID);
/* ZAXIS routines */
......
......@@ -3934,6 +3934,18 @@ void gridInqUUID(int gridID, unsigned char uuid[CDI_UUID_SIZE])
}
void gridDefUvRelativeToGrid(int gridID, int uvRelativeToGrid)
{
grid_t *gridptr = grid_to_pointer(gridID);
if ( gridptr->uvRelativeToGrid != uvRelativeToGrid )
{
gridMark4Update(gridID);
gridptr->uvRelativeToGrid = uvRelativeToGrid;
}
}
int gridInqUvRelativeToGrid(int gridID)
{
grid_t *gridptr = grid_to_pointer(gridID);
......
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