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
libcdi
Commits
0008919f
Commit
0008919f
authored
Dec 07, 2015
by
Thomas Jahns
🤸
Browse files
Narrow scope of variable declaration.
parent
979d0704
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
0008919f
...
...
@@ -4725,7 +4725,6 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
int
ltwarn
=
TRUE
;
size_t
attlen
;
char
attname
[
CDI_MAX_NAME
];
double
datt
;
struct
cdfLazyGrid
*
restrict
lazyGrid
=
NULL
,
*
restrict
lazyProj
=
NULL
;
#define grid (&lazyGrid->base)
#define proj (&lazyProj->base)
...
...
@@ -5218,6 +5217,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
}
else
if
(
strcmp
(
attname
,
"earth_radius"
)
==
0
)
{
double
datt
;
cdfGetAttDouble
(
ncvars
[
ncvarid
].
ncid
,
ncvars
[
ncvarid
].
gmapid
,
attname
,
1
,
&
datt
);
grid
->
laea_a
=
datt
;
grid
->
lcc2_a
=
datt
;
...
...
@@ -5232,6 +5232,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
}
else
if
(
strcmp
(
attname
,
"latitude_of_projection_origin"
)
==
0
)
{
double
datt
;
cdfGetAttDouble
(
ncvars
[
ncvarid
].
ncid
,
ncvars
[
ncvarid
].
gmapid
,
attname
,
1
,
&
datt
);
grid
->
laea_lat_0
=
datt
;
grid
->
lcc2_lat_0
=
datt
;
...
...
@@ -5240,6 +5241,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
{
if
(
attlen
==
1
)
{
double
datt
;
cdfGetAttDouble
(
ncvars
[
ncvarid
].
ncid
,
ncvars
[
ncvarid
].
gmapid
,
attname
,
1
,
&
datt
);
grid
->
lcc2_lat_1
=
datt
;
grid
->
lcc2_lat_2
=
datt
;
...
...
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