Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
7637614e
Commit
7637614e
authored
1 year ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
fixed warning by removing old code
parent
6102ed3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Query.cc
+12
-21
12 additions, 21 deletions
src/Query.cc
with
12 additions
and
21 deletions
src/Query.cc
+
12
−
21
View file @
7637614e
...
...
@@ -16,7 +16,7 @@
class
ModuleQuery
{
int
streamID1
;
//QueryStream
int
streamID1
;
//
QueryStream
CdoStreamID
streamID2
;
int
taxisID1
;
...
...
@@ -33,8 +33,6 @@ public:
cdo_operator_add
(
"query"
,
0
,
0
,
"query entries"
);
auto
dataIsUnchanged
=
data_is_unchanged
();
auto
operatorID
=
cdo_operator_id
();
operator_input_arg
(
cdo_operator_enter
(
operatorID
));
...
...
@@ -71,7 +69,7 @@ public:
set_query_parameter
(
*
pkvlist
,
query
);
if
(
Options
::
cdoVerbose
)
cdiQueryPrint
(
query
);
streamID1
=
streamOpenReadQuery
(
cdo_get_stream_name
(
0
),
query
);
streamID1
=
streamOpenReadQuery
(
cdo_get_stream_name
(
0
),
query
);
if
(
streamID1
<
0
)
cdi_open_error
(
streamID1
,
"Open failed on >%s<"
,
cdo_get_stream_name
(
0
));
cdiQueryPrintEntriesNotFound
(
query
);
...
...
@@ -83,11 +81,11 @@ public:
auto
vlistID1
=
streamInqVlist
(
streamID1
);
auto
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID1
=
vlistInqTaxis
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
taxisID1
=
vlistInqTaxis
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
cdo_open_write
(
1
);
streamID2
=
cdo_open_write
(
1
);
cdo_def_vlist
(
streamID2
,
vlistID2
);
varListInit
(
varList1
,
vlistID1
);
...
...
@@ -107,23 +105,16 @@ public:
for
(
int
recID
=
0
;
recID
<
nrecs
;
++
recID
)
{
int
varID
,
levelID
;
streamInqRecord
(
streamID1
,
&
varID
,
&
levelID
);
cdo_def_record
(
streamID2
,
varID
,
levelID
);
/*
if (dataIsUnchanged)
{
streamCopyRecord(streamID2, streamID1);
}
field
.
init
(
varList1
[
varID
]);
if
(
field
.
memType
==
MemType
::
Float
)
streamReadRecordF
(
streamID1
,
field
.
vec_f
.
data
(),
&
field
.
nmiss
);
else
*/
{
field
.
init
(
varList1
[
varID
]);
if
(
field
.
memType
==
MemType
::
Float
)
streamReadRecordF
(
streamID1
,
field
.
vec_f
.
data
(),
&
field
.
nmiss
);
else
streamReadRecord
(
streamID1
,
field
.
vec_d
.
data
(),
&
field
.
nmiss
);
cdo_write_record
(
streamID2
,
field
);
}
streamReadRecord
(
streamID1
,
field
.
vec_d
.
data
(),
&
field
.
nmiss
);
cdo_write_record
(
streamID2
,
field
);
}
tsID
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment