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
0e6b215a
Commit
0e6b215a
authored
Feb 01, 2010
by
Uwe Schulzweida
Browse files
cdfDefVar: fused loops
parent
67d12ac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
0e6b215a
...
...
@@ -2655,7 +2655,12 @@ int cdfDefVar(int streamID, int varID)
}
if
(
strcmp
(
name
,
varname
)
!=
0
)
Warning
(
func
,
"Changed double entry of variable name '%s' to '%s'!"
,
name
,
varname
);
{
if
(
iz
==
1
)
Warning
(
func
,
"Changed double entry of variable name '%s' to '%s'!"
,
name
,
varname
);
else
Warning
(
func
,
"Changed multiple entry of variable name '%s' to '%s'!"
,
name
,
varname
);
}
name
=
varname
;
}
...
...
@@ -2865,10 +2870,7 @@ int cdfDefVar(int streamID, int varID)
}
if
(
xtype
==
(
int
)
NC_FLOAT
)
astype
=
NC_FLOAT
;
}
if
(
laddoffset
||
lscalefactor
)
{
cdf_put_att_double
(
fileID
,
ncvarid
,
"add_offset"
,
(
nc_type
)
astype
,
1L
,
&
addoffset
);
cdf_put_att_double
(
fileID
,
ncvarid
,
"scale_factor"
,
(
nc_type
)
astype
,
1L
,
&
scalefactor
);
}
...
...
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