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
5e1755d7
Commit
5e1755d7
authored
Aug 13, 2014
by
Uwe Schulzweida
Browse files
varAddRecord: set default tsteptype to TSTEP_INSTANT
parent
d2d9193d
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/stream_ext.c
View file @
5e1755d7
...
...
@@ -238,7 +238,7 @@ void extAddRecord(stream_t *streamptr, int param, int level, int xysize,
leveltype
=
ZAXIS_GENERIC
;
varAddRecord
(
recID
,
param
,
gridID
,
leveltype
,
0
,
level
,
0
,
0
,
0
,
extInqDatatype
(
prec
,
number
),
&
varID
,
&
levelID
,
UNDEFID
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
extInqDatatype
(
prec
,
number
),
&
varID
,
&
levelID
,
TSTEP_INSTANT
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
(
*
record
).
varID
=
(
short
)
varID
;
(
*
record
).
levelID
=
(
short
)
levelID
;
...
...
src/stream_ieg.c
View file @
5e1755d7
...
...
@@ -736,7 +736,7 @@ void iegAddRecord(stream_t *streamptr, int param, int *pdb, int *gdb, double *vc
datatype
=
iegInqDatatype
(
prec
);
varAddRecord
(
recID
,
param
,
gridID
,
leveltype
,
lbounds
,
level1
,
level2
,
0
,
0
,
datatype
,
&
varID
,
&
levelID
,
UNDEFID
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
datatype
,
&
varID
,
&
levelID
,
TSTEP_INSTANT
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
(
*
record
).
varID
=
varID
;
(
*
record
).
levelID
=
levelID
;
...
...
src/stream_srv.c
View file @
5e1755d7
...
...
@@ -243,7 +243,7 @@ void srv_add_record(stream_t *streamptr, int param, int level, int xsize, int ys
datatype
=
srvInqDatatype
(
prec
);
varAddRecord
(
recID
,
param
,
gridID
,
leveltype
,
0
,
level
,
0
,
0
,
0
,
datatype
,
&
varID
,
&
levelID
,
UNDEFID
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
datatype
,
&
varID
,
&
levelID
,
TSTEP_INSTANT
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
xassert
(
varID
<=
SHRT_MAX
&&
levelID
<=
SHRT_MAX
);
(
*
record
).
varID
=
(
short
)
varID
;
...
...
src/varscan.c
View file @
5e1755d7
...
...
@@ -338,7 +338,7 @@ void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
vartable
[
varID
].
lbounds
=
lbounds
;
vartable
[
varID
].
level_sf
=
level_sf
;
vartable
[
varID
].
level_unit
=
level_unit
;
if
(
tsteptype
!=
UNDEFID
)
vartable
[
varID
].
tsteptype
=
tsteptype
;
vartable
[
varID
].
tsteptype
=
tsteptype
;
if
(
numavg
)
vartable
[
varID
].
timave
=
1
;
if
(
name
)
if
(
name
[
0
]
)
vartable
[
varID
].
name
=
strdup
(
name
);
...
...
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