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
45e092a6
Commit
45e092a6
authored
Oct 29, 2012
by
Uwe Schulzweida
Browse files
stream_cgribex.c: do not check fraction of xinc/yinc
parent
d83898ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
45e092a6
...
...
@@ -3,7 +3,7 @@
#endif
#include
<stdio.h>
#include
<float.h>
/* FLT_EPSILON */
//
#include <float.h> /* FLT_EPSILON */
#include
"dmemory.h"
#include
"cdi.h"
...
...
@@ -1765,8 +1765,8 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
ISEC2_LastLon
=
NINT
(
xlast
*
1000
);
ISEC2_LonIncr
=
NINT
(
xinc
*
1000
);
}
if
(
fabs
(
xinc
*
1000
-
ISEC2_LonIncr
)
>
FLT_EPSILON
)
ISEC2_LonIncr
=
0
;
// if ( fabs(xinc*1000 - ISEC2_LonIncr) > FLT_EPSILON )
ISEC2_LonIncr = 0;
if
(
gridtype
==
GRID_GAUSSIAN
||
gridtype
==
GRID_GAUSSIAN_REDUCED
)
{
...
...
@@ -1777,8 +1777,7 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
else
{
ISEC2_LatIncr
=
NINT
(
yinc
*
1000
);
if
(
fabs
(
yinc
*
1000
-
ISEC2_LatIncr
)
>
FLT_EPSILON
)
ISEC2_LatIncr
=
0
;
// if ( fabs(yinc*1000 - ISEC2_LatIncr) > FLT_EPSILON ) ISEC2_LatIncr = 0;
if
(
ISEC2_LatIncr
<
0
)
ISEC2_LatIncr
=
-
ISEC2_LatIncr
;
}
...
...
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