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
53c64400
Commit
53c64400
authored
Apr 08, 2016
by
Thomas Jahns
🤸
Browse files
Abbreviate assignment.
parent
0be9580d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
53c64400
...
@@ -3836,8 +3836,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
...
@@ -3836,8 +3836,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
{
{
extern
int
cdiIgnoreValidRange
;
extern
int
cdiIgnoreValidRange
;
int
lignore
=
FALSE
;
int
lignore
=
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
);
if
(
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
)
)
lignore
=
TRUE
;
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
{
{
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
2
,
ncvars
[
ncvarid
].
validrange
);
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
2
,
ncvars
[
ncvarid
].
validrange
);
...
@@ -3857,8 +3856,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
...
@@ -3857,8 +3856,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
{
{
extern
int
cdiIgnoreValidRange
;
extern
int
cdiIgnoreValidRange
;
int
lignore
=
FALSE
;
int
lignore
=
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
);
if
(
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
)
)
lignore
=
TRUE
;
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
{
{
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
1
,
&
(
ncvars
[
ncvarid
].
validrange
)[
0
]);
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
1
,
&
(
ncvars
[
ncvarid
].
validrange
)[
0
]);
...
@@ -3875,8 +3873,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
...
@@ -3875,8 +3873,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
if
(
ncvars
[
ncvarid
].
lvalidrange
==
FALSE
)
{
{
extern
int
cdiIgnoreValidRange
;
extern
int
cdiIgnoreValidRange
;
int
lignore
=
FALSE
;
int
lignore
=
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
);
if
(
xtypeIsFloat
(
atttype
)
!=
xtypeIsFloat
(
xtype
)
)
lignore
=
TRUE
;
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
if
(
cdiIgnoreValidRange
==
FALSE
&&
lignore
==
FALSE
)
{
{
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
1
,
&
(
ncvars
[
ncvarid
].
validrange
)[
1
]);
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
1
,
&
(
ncvars
[
ncvarid
].
validrange
)[
1
]);
...
...
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