Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
24ef129e
Commit
24ef129e
authored
Apr 04, 2014
by
Thomas Jahns
🤸
Browse files
Add missing restrict declarations.
parent
a2f489c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gaussgrid.c
View file @
24ef129e
...
...
@@ -109,7 +109,7 @@ void gawl(double *pfn, double *pl, double *pw, int kn)
}
static
void
gauaw
(
int
kn
,
double
*
pl
,
double
*
pw
)
void
gauaw
(
int
kn
,
double
*
restrict
pl
,
double
*
restrict
pw
)
{
/*
* 1.0 Initialize Fourier coefficients for ordinary Legendre polynomials
...
...
@@ -291,7 +291,7 @@ void gauaw_old(double *pa, double *pw, int nlat)
}
#endif
void
gaussaw
(
double
*
pa
,
double
*
pw
,
int
nlat
)
void
gaussaw
(
double
*
restrict
pa
,
double
*
restrict
pw
,
int
nlat
)
{
//gauaw_old(pa, pw, nlat);
gauaw
(
nlat
,
pa
,
pw
);
...
...
src/gaussgrid.h
View file @
24ef129e
#ifndef _GAUSSGRID_H
#define _GAUSSGRID_H
void
gaussaw
(
double
*
pa
,
double
*
pw
,
int
nlat
);
void
gaussaw
(
double
*
restrict
pa
,
double
*
restrict
pw
,
int
nlat
);
#endif
/* _GAUSSGRID_H */
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment