Commit 7e58ea1a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

added const to output fields

parent b2bb02e8
......@@ -424,7 +424,7 @@ char *gridNamePtr(int gridtype);
void gridCompress(int gridID);
void gridDefMask(int gridID, int *mask);
void gridDefMask(int gridID, const int *mask);
int gridInqMask(int gridID, int *mask);
void gridPrint(int gridID, int opt);
......@@ -458,34 +458,34 @@ void gridDefYsize(int gridID, int ysize);
int gridInqYsize(int gridID);
/* gridDefXvals: Define the values of a X-axis */
void gridDefXvals(int gridID, double *xvals);
void gridDefXvals(int gridID, const double *xvals);
/* gridInqXvals: Get all values of a X-axis */
int gridInqXvals(int gridID, double *xvals);
/* gridDefYvals: Define the values of a Y-axis */
void gridDefYvals(int gridID, double *yvals);
void gridDefYvals(int gridID, const double *yvals);
/* gridInqYvals: Get all values of a Y-axis */
int gridInqYvals(int gridID, double *yvals);
/* gridDefXname: Define the name of a X-axis */
void gridDefXname(int gridID, char *xname);
void gridDefXname(int gridID, const char *xname);
/* gridDefXlongname: Define the longname of a X-axis */
void gridDefXlongname(int gridID, char *xlongname);
void gridDefXlongname(int gridID, const char *xlongname);
/* gridDefXunits: Define the units of a X-axis */
void gridDefXunits(int gridID, char *xunits);
void gridDefXunits(int gridID, const char *xunits);
/* gridDefYname: Define the name of a Y-axis */
void gridDefYname(int gridID, char *yname);
void gridDefYname(int gridID, const char *yname);
/* gridDefYlongname: Define the longname of a Y-axis */
void gridDefYlongname(int gridID, char *ylongname);
void gridDefYlongname(int gridID, const char *ylongname);
/* gridDefYunits: Define the units of a Y-axis */
void gridDefYunits(int gridID, char *yunits);
void gridDefYunits(int gridID, const char *yunits);
/* gridInqXname: Get the name of a X-axis */
void gridInqXname(int gridID, char *xname);
......@@ -559,7 +559,7 @@ void gridDefLaea(int gridID, double earth_radius, double lon_0, double lat_0);
void gridInqLaea(int gridID, double *earth_radius, double *lon_0, double *lat_0);
void gridDefArea(int gridID, double *area);
void gridDefArea(int gridID, const double *area);
void gridInqArea(int gridID, double *area);
int gridHasArea(int gridID);
......@@ -570,18 +570,18 @@ void gridDefNvertex(int gridID, int nvertex);
int gridInqNvertex(int gridID);
/* gridDefXbounds: Define the bounds of a X-axis */
void gridDefXbounds(int gridID, double *xbounds);
void gridDefXbounds(int gridID, const double *xbounds);
/* gridInqXbounds: Get the bounds of a X-axis */
int gridInqXbounds(int gridID, double *xbounds);
/* gridDefYbounds: Define the bounds of a Y-axis */
void gridDefYbounds(int gridID, double *ybounds);
void gridDefYbounds(int gridID, const double *ybounds);
/* gridInqYbounds: Get the bounds of a Y-axis */
int gridInqYbounds(int gridID, double *ybounds);
void gridDefRowlon(int gridID, int nrowlon, int *rowlon);
void gridDefRowlon(int gridID, int nrowlon, const int *rowlon);
void gridInqRowlon(int gridID, int *rowlon);
void gridChangeType(int gridID, int gridtype);
......@@ -610,7 +610,7 @@ void zaxisPrint(int zaxisID);
int zaxisSize(void);
/* zaxisDefLevels: Define the levels of a Z-axis */
void zaxisDefLevels(int zaxisID, double *levels);
void zaxisDefLevels(int zaxisID, const double *levels);
/* zaxisInqLevels: Get all levels of a Z-axis */
void zaxisInqLevels(int zaxisID, double *levels);
......@@ -654,9 +654,9 @@ int zaxisInqUbounds(int zaxisID, double *ubounds);
int zaxisInqWeights(int zaxisID, double *weights);
double zaxisInqLbound(int zaxisID, int index);
double zaxisInqUbound(int zaxisID, int index);
void zaxisDefLbounds(int zaxisID, double *lbounds);
void zaxisDefUbounds(int zaxisID, double *ubounds);
void zaxisDefWeights(int zaxisID, double *weights);
void zaxisDefLbounds(int zaxisID, const double *lbounds);
void zaxisDefUbounds(int zaxisID, const double *ubounds);
void zaxisDefWeights(int zaxisID, const double *weights);
void zaxisChangeType(int zaxisID, int zaxistype);
/* TAXIS routines */
......
......@@ -778,7 +778,7 @@ The function @func{gridDefXname} defines the name of a X-axis.
@EndFunction
*/
void gridDefXname(int gridID, char *xname)
void gridDefXname(int gridID, const char *xname)
{
grid_t *gridptr;
......@@ -803,7 +803,7 @@ The function @func{gridDefXlongname} defines the longname of a X-axis.
@EndFunction
*/
void gridDefXlongname(int gridID, char *xlongname)
void gridDefXlongname(int gridID, const char *xlongname)
{
grid_t *gridptr;
......@@ -828,7 +828,7 @@ The function @func{gridDefXunits} defines the units of a X-axis.
@EndFunction
*/
void gridDefXunits(int gridID, char *xunits)
void gridDefXunits(int gridID, const char *xunits)
{
grid_t *gridptr;
......@@ -853,7 +853,7 @@ The function @func{gridDefYname} defines the name of a Y-axis.
@EndFunction
*/
void gridDefYname(int gridID, char *yname)
void gridDefYname(int gridID, const char *yname)
{
grid_t *gridptr;
......@@ -878,7 +878,7 @@ The function @func{gridDefYlongname} defines the longname of a Y-axis.
@EndFunction
*/
void gridDefYlongname(int gridID, char *ylongname)
void gridDefYlongname(int gridID, const char *ylongname)
{
grid_t *gridptr;
......@@ -903,7 +903,7 @@ The function @func{gridDefYunits} defines the units of a Y-axis.
@EndFunction
*/
void gridDefYunits(int gridID, char *yunits)
void gridDefYunits(int gridID, const char *yunits)
{
grid_t *gridptr;
......@@ -1417,7 +1417,7 @@ int gridInqYsize(int gridID)
@EndFunction
*/
void gridDefRowlon(int gridID, int nrowlon, int *rowlon)
void gridDefRowlon(int gridID, int nrowlon, const int *rowlon)
{
static char func[] = "gridDefRowlon";
grid_t *gridptr;
......@@ -1484,7 +1484,7 @@ int gridInqMask(int gridID, int *mask)
}
void gridDefMask(int gridID, int *mask)
void gridDefMask(int gridID, const int *mask)
{
static char func[] = "gridDefMask";
int size;
......@@ -1565,7 +1565,7 @@ int gridInqXvals(int gridID, double *xvals)
@Function gridDefXvals
@Title Define the values of a X-axis
@Prototype void gridDefXvals(int gridID, double *xvals)
@Prototype void gridDefXvals(int gridID, const double *xvals)
@Parameter
@Item gridID Grid ID, from a previous call to @fref{gridCreate}
@Item xvals X-values of the grid
......@@ -1575,7 +1575,7 @@ The function @func{gridDefXvals} defines all values of the X-axis.
@EndFunction
*/
void gridDefXvals(int gridID, double *xvals)
void gridDefXvals(int gridID, const double *xvals)
{
static char func[] = "gridDefXvals";
int size;
......@@ -1659,7 +1659,7 @@ int gridInqYvals(int gridID, double *yvals)
@Function gridDefYvals
@Title Define the values of a Y-axis
@Prototype void gridDefYvals(int gridID, double *yvals)
@Prototype void gridDefYvals(int gridID, const double *yvals)
@Parameter
@Item gridID Grid ID, from a previous call to @fref{gridCreate}
@Item yvals Y-values of the grid
......@@ -1669,7 +1669,7 @@ The function @func{gridDefYvals} defines all values of the Y-axis.
@EndFunction
*/
void gridDefYvals(int gridID, double *yvals)
void gridDefYvals(int gridID, const double *yvals)
{
static char func[] = "gridDefYvals";
int size;
......@@ -2758,7 +2758,7 @@ void gridCompress(int gridID)
}
void gridDefArea(int gridID, double *area)
void gridDefArea(int gridID, const double *area)
{
static char func[] = "gridDefArea";
int size;
......@@ -2845,7 +2845,7 @@ int gridInqNvertex(int gridID)
@Function gridDefXbounds
@Title Define the bounds of a X-axis
@Prototype void gridDefXbounds(int gridID, double *xbounds)
@Prototype void gridDefXbounds(int gridID, const double *xbounds)
@Parameter
@Item gridID Grid ID, from a previous call to @fref{gridCreate}
@Item xbounds X-bounds of the grid
......@@ -2855,7 +2855,7 @@ The function @func{gridDefXbounds} defines all bounds of the X-axis.
@EndFunction
*/
void gridDefXbounds(int gridID, double *xbounds)
void gridDefXbounds(int gridID, const double *xbounds)
{
static char func[] = "gridDefXbounds";
int size;
......@@ -2953,7 +2953,7 @@ double *gridInqXboundsPtr(int gridID)
@Function gridDefYbounds
@Title Define the bounds of a Y-axis
@Prototype void gridDefYbounds(int gridID, double *ybounds)
@Prototype void gridDefYbounds(int gridID, const double *ybounds)
@Parameter
@Item gridID Grid ID, from a previous call to @fref{gridCreate}
@Item ybounds Y-bounds of the grid
......@@ -2963,7 +2963,7 @@ The function @func{gridDefYbounds} defines all bounds of the Y-axis.
@EndFunction
*/
void gridDefYbounds(int gridID, double *ybounds)
void gridDefYbounds(int gridID, const double *ybounds)
{
static char func[] = "gridDefYbounds";
int size;
......
......@@ -628,7 +628,7 @@ int zaxisInqLtype(int zaxisID)
@Function zaxisDefLevels
@Title Define the levels of a Z-axis
@Prototype void zaxisDefLevels(int zaxisID, double *levels)
@Prototype void zaxisDefLevels(int zaxisID, const double *levels)
@Parameter
@Item zaxisID Z-axis ID, from a previous call to @fref{zaxisCreate}
@Item levels All levels of the Z-axis
......@@ -638,7 +638,7 @@ The function @func{zaxisDefLevels} defines the levels of a Z-axis.
@EndFunction
*/
void zaxisDefLevels(int zaxisID, double *levels)
void zaxisDefLevels(int zaxisID, const double *levels)
{
static char func[] = "zaxisDefLevels";
int ilev;
......@@ -1054,7 +1054,7 @@ const double *zaxisInqVctPtr(int zaxisID)
}
void zaxisDefLbounds(int zaxisID, double *lbounds)
void zaxisDefLbounds(int zaxisID, const double *lbounds)
{
static char func[] = "zaxisDefLbounds";
size_t size;
......@@ -1077,7 +1077,7 @@ void zaxisDefLbounds(int zaxisID, double *lbounds)
}
void zaxisDefUbounds(int zaxisID, double *ubounds)
void zaxisDefUbounds(int zaxisID, const double *ubounds)
{
static char func[] = "zaxisDefUbounds";
size_t size;
......@@ -1100,7 +1100,7 @@ void zaxisDefUbounds(int zaxisID, double *ubounds)
}
void zaxisDefWeights(int zaxisID, double *weights)
void zaxisDefWeights(int zaxisID, const double *weights)
{
static char func[] = "zaxisDefWeights";
size_t size;
......
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