Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
b696e63a
Commit
b696e63a
authored
Mar 25, 2016
by
Ralf Mueller
Browse files
fix linking error; partly resolves refs #6631
parent
fbc51b8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Verifygrid.c
View file @
b696e63a
...
@@ -151,7 +151,7 @@ static int classify_polygon(int number_corners, double cell_corners[]){
...
@@ -151,7 +151,7 @@ static int classify_polygon(int number_corners, double cell_corners[]){
}
}
inline
void
x_ConvexGetPointDelta
(
double
(
*
p_delta
)[
2
],
double
(
*
p_previous_point
)[
2
],
double
(
*
p_current_point
)[
2
]
,
double
cell_corners
[],
int
*
p_corner_to_read
){
static
inline
void
x_ConvexGetPointDelta
(
double
(
*
p_delta
)[
2
],
double
(
*
p_previous_point
)[
2
],
double
(
*
p_current_point
)[
2
]
,
double
cell_corners
[],
int
*
p_corner_to_read
){
(
*
p_current_point
)[
0
]
=
cell_corners
[
*
p_corner_to_read
*
2
+
0
];
(
*
p_current_point
)[
0
]
=
cell_corners
[
*
p_corner_to_read
*
2
+
0
];
(
*
p_current_point
)[
1
]
=
cell_corners
[
*
p_corner_to_read
*
2
+
1
];
(
*
p_current_point
)[
1
]
=
cell_corners
[
*
p_corner_to_read
*
2
+
1
];
*
p_corner_to_read
=
*
p_corner_to_read
+
1
;
*
p_corner_to_read
=
*
p_corner_to_read
+
1
;
...
@@ -159,7 +159,7 @@ inline void x_ConvexGetPointDelta(double (*p_delta)[2], double (*p_previous_poin
...
@@ -159,7 +159,7 @@ inline void x_ConvexGetPointDelta(double (*p_delta)[2], double (*p_previous_poin
(
*
p_delta
)[
1
]
=
(
*
p_current_point
)[
1
]
-
(
*
p_previous_point
)[
1
];
(
*
p_delta
)[
1
]
=
(
*
p_current_point
)[
1
]
-
(
*
p_previous_point
)[
1
];
}
}
inline
int
x_ConvexCompare
(
double
(
*
p_delta
)[
2
]){
static
inline
int
x_ConvexCompare
(
double
(
*
p_delta
)[
2
]){
if
((
*
p_delta
)[
0
]
>
0
){
if
((
*
p_delta
)[
0
]
>
0
){
return
-
1
;
return
-
1
;
}
else
{
}
else
{
...
@@ -179,7 +179,7 @@ inline int x_ConvexCompare(double (*p_delta)[2]){
...
@@ -179,7 +179,7 @@ inline int x_ConvexCompare(double (*p_delta)[2]){
}
}
}
}
inline
int
x_ConvexCheckTriple
(
int
*
p_current_direction
,
int
*
p_this_direction
,
int
*
p_direction_changes
,
double
current_delta
[
2
],
double
(
*
p_previous_delta
)[
2
],
int
*
p_angle_sign
,
double
(
*
p_second_corner
)[
2
],
double
(
*
p_third_corner
)[
2
]){
static
inline
int
x_ConvexCheckTriple
(
int
*
p_current_direction
,
int
*
p_this_direction
,
int
*
p_direction_changes
,
double
current_delta
[
2
],
double
(
*
p_previous_delta
)[
2
],
int
*
p_angle_sign
,
double
(
*
p_second_corner
)[
2
],
double
(
*
p_third_corner
)[
2
]){
if
(
(
*
p_this_direction
=
ConvexCompare
(
current_delta
))
==
-
(
*
p_current_direction
))
{
if
(
(
*
p_this_direction
=
ConvexCompare
(
current_delta
))
==
-
(
*
p_current_direction
))
{
(
*
p_direction_changes
)
=
(
*
p_direction_changes
)
+
1
;
(
*
p_direction_changes
)
=
(
*
p_direction_changes
)
+
1
;
if
(
*
p_direction_changes
>
2
)
return
1
;
if
(
*
p_direction_changes
>
2
)
return
1
;
...
...
Write
Preview
Markdown
is supported
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