Commit 6dd984b9 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

removed restrict keyword from function declarations

parent 331c5754
......@@ -171,9 +171,9 @@ struct Variable
/* FFT */
void fft_set(double *trigs, long *ifax, long n);
void fc2gp(double *restrict trig, long *restrict ifax, double *restrict fc, double *restrict gp, long nlat, long nlon,
void fc2gp(double * trig, long * ifax, double * fc, double * gp, long nlat, long nlon,
long nlev, long nfc);
void gp2fc(double *trig, long *ifax, const double *restrict gp, double *restrict fc, long nlat, long nlon, long nlev, long nfc);
void gp2fc(double *trig, long *ifax, const double * gp, double * fc, long nlat, long nlon, long nlev, long nfc);
/* Convert Spectral Array to new resolution */
void sp2sp(double *arrayIn, int truncIn, double *arrayOut, int truncOut);
......@@ -181,7 +181,7 @@ void sp2fc(const double *sa, double *fa, const double *poli, long nlev, long nla
void fc2sp(double *fa, double *sa, double *poli, int klev, int nlat, int nfc, int nt);
/* Physc */
void dv2ps(const double *restrict div, double *restrict pot, long nlev, long ntr);
void dv2ps(const double * div, double * pot, long nlev, long ntr);
void dv2uv(double *d, double *o, double *u, double *v, double *f, double *g, int nt, int nsp, int nlev);
void scaluv(double *fu, double rclat[], int nlat, int lot);
void uv2dv(double *fu, double *fv, double *sd, double *sv, double *pol2, double *pol3, int klev, int nlat, int nt);
......
......@@ -154,18 +154,18 @@ void remapDistwgtWeights(size_t numNeighbors, RemapSearch &rsearch, RemapVars &r
void remapConservWeights(RemapSearch &rsearch, RemapVars &rv);
void remapConservWeightsScrip(RemapSearch &rsearch, RemapVars &rv);
void remapBilinear(RemapSearch &rsearch, const double *restrict src_array, double *restrict tgt_array, double missval);
void remapBicubic(RemapSearch &rsearch, const double *restrict src_array, double *restrict tgt_array, double missval);
void remapDistwgt(size_t numNeighbors, RemapSearch &rsearch, const double *restrict src_array, double *restrict tgt_array,
void remapBilinear(RemapSearch &rsearch, const double * src_array, double * tgt_array, double missval);
void remapBicubic(RemapSearch &rsearch, const double * src_array, double * tgt_array, double missval);
void remapDistwgt(size_t numNeighbors, RemapSearch &rsearch, const double * src_array, double * tgt_array,
double missval);
void remapConserv(RemapSearch &rsearch, const double *restrict src_array, double *restrict tgt_array, double missval);
void remapConserv(RemapSearch &rsearch, const double * src_array, double * tgt_array, double missval);
void remapStat(int remapOrder, RemapGrid &src_grid, RemapGrid &tgt_grid, RemapVars &rv, const double *restrict array1,
const double *restrict array2, double missval);
void remapGradients(RemapGrid &grid, const double *restrict array, RemapGradients &gradients);
void remapStat(int remapOrder, RemapGrid &src_grid, RemapGrid &tgt_grid, RemapVars &rv, const double * array1,
const double * array2, double missval);
void remapGradients(RemapGrid &grid, const double * array, RemapGradients &gradients);
void sort_add(size_t num_links, size_t num_wts, size_t *restrict add1, size_t *restrict add2, double *restrict weights);
void sort_iter(size_t num_links, size_t num_wts, size_t *restrict add1, size_t *restrict add2, double *restrict weights,
void sort_add(size_t num_links, size_t num_wts, size_t * add1, size_t * add2, double * weights);
void sort_iter(size_t num_links, size_t num_wts, size_t * add1, size_t * add2, double * weights,
int parent);
void remapWriteDataScrip(const char *interp_file, RemapMethod mapType, SubmapType submapType, int numNeighbors, int remapOrder,
......@@ -177,24 +177,24 @@ void calcLatBins(GridSearchBins &searchBins);
size_t get_srch_cells(size_t tgt_cell_addr, GridSearchBins &tgtBins, GridSearchBins &srcBins, float *tgt_cell_bound_box,
size_t *srch_add);
int gridSearchSquareReg2dNN(size_t nx, size_t ny, size_t *restrict nbr_add, double *restrict nbr_dist, double plat, double plon,
const double *restrict src_center_lat, const double *restrict src_center_lon);
int gridSearchSquareReg2dNN(size_t nx, size_t ny, size_t * nbr_add, double * nbr_dist, double plat, double plon,
const double * src_center_lat, const double * src_center_lon);
int gridSearchSquareReg2d(RemapGrid *src_grid, size_t *restrict src_add, double *restrict src_lats, double *restrict src_lons,
int gridSearchSquareReg2d(RemapGrid *src_grid, size_t * src_add, double * src_lats, double * src_lons,
double plat, double plon);
bool pointInQuad(bool isCyclic, size_t nx, size_t ny, size_t i, size_t j, size_t adds[4], double lons[4], double lats[4],
double plon, double plat, const double *restrict centerLon, const double *restrict centerLat);
double plon, double plat, const double * centerLon, const double * centerLat);
int gridSearchSquareCurv2dScrip(RemapGrid *src_grid, size_t *restrict src_add, double *restrict src_lats,
double *restrict src_lons, double plat, double plon, GridSearchBins &srcBins);
int gridSearchSquareCurv2dScrip(RemapGrid *src_grid, size_t * src_add, double * src_lats,
double * src_lons, double plat, double plon, GridSearchBins &srcBins);
bool remapFindWeights(double plon, double plat, double *restrict src_lons, double *restrict src_lats, double *ig, double *jg);
int rect_grid_search(size_t *ii, size_t *jj, double x, double y, size_t nxm, size_t nym, const double *restrict xm,
const double *restrict ym);
bool remapFindWeights(double plon, double plat, double * src_lons, double * src_lats, double *ig, double *jg);
int rect_grid_search(size_t *ii, size_t *jj, double x, double y, size_t nxm, size_t nym, const double * xm,
const double * ym);
void remapgrid_get_lonlat(RemapGrid *grid, size_t cell_add, double *plon, double *plat);
void remapCheckArea(size_t grid_size, double *restrict cell_area, const char *name);
void remapCheckArea(size_t grid_size, double * cell_area, const char *name);
#endif /* REMAP_H */
......@@ -43,7 +43,7 @@ struct DVTRANS
double *f2;
};
void dv2ps(const double *restrict div, double *restrict pot, long nlev, long ntr);
void dv2ps(const double * div, double * pot, long nlev, long ntr);
SPTRANS *sptrans_new(int nlon, int nlat, int ntr, int flag);
void sptrans_delete(SPTRANS *sptrans);
......
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