Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
fe271daf
Commit
fe271daf
authored
Oct 18, 2015
by
Uwe Schulzweida
Browse files
remap_distwgt.c: merge declaration and definition
parent
eb783e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/remap_distwgt.c
View file @
fe271daf
...
...
@@ -284,13 +284,12 @@ void grid_search_nbr(struct gridsearch *gs, int num_neighbors, int *restrict nbr
double plat, ! latitude of the search point
double plon, ! longitude of the search point
*/
/* Local variables */
int
n
;
double
search_radius
=
get_search_radius
();
/* Initialize distance and address arrays */
for
(
n
=
0
;
n
<
num_neighbors
;
++
n
)
nbr_add
[
n
]
=
-
1
;
for
(
n
=
0
;
n
<
num_neighbors
;
++
n
)
nbr_dist
[
n
]
=
BIGNUM
;
for
(
int
n
=
0
;
n
<
num_neighbors
;
++
n
)
nbr_add
[
n
]
=
-
1
;
for
(
int
n
=
0
;
n
<
num_neighbors
;
++
n
)
nbr_dist
[
n
]
=
BIGNUM
;
int
ndist
=
num_neighbors
;
ndist
=
ndist
*
2
;
// check some more points if distance is the same use the smaller index (nadd)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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