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
libcdi
Commits
0415ce02
Commit
0415ce02
authored
Aug 06, 2015
by
Uwe Schulzweida
Browse files
defineAttributes(): use cdf_put_att_float() for single precision float attributes
parent
bb59704d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
0415ce02
...
...
@@ -627,7 +627,7 @@ void defineAttributes(int vlistID, int varID, int fileID, int ncvarID)
cdf_put_att_float
(
fileID
,
ncvarID
,
attname
,
NC_FLOAT
,
len
,
attflt_sp
);
}
else
cdf_put_att_double
(
fileID
,
ncvarID
,
attname
,
atttype
==
DATATYPE_FLT32
?
NC_FLOAT
:
NC_DOUBLE
,
len
,
attflt
);
cdf_put_att_double
(
fileID
,
ncvarID
,
attname
,
NC_DOUBLE
,
len
,
attflt
);
}
}
free
(
attBuf
);
...
...
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