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
664142ce
Commit
664142ce
authored
3 months ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Selvar: added test implementation for USE_STREAM_PTR
parent
b77c098a
No related branches found
No related tags found
1 merge request
!295
M214003/develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Selvar.cc
+11
-0
11 additions, 0 deletions
src/Selvar.cc
with
11 additions
and
0 deletions
src/Selvar.cc
+
11
−
0
View file @
664142ce
...
...
@@ -303,6 +303,11 @@ public:
{
Field
field
;
// #define USE_STREAM_PTR 1
#ifdef USE_STREAM_PTR
auto
stream1
=
stream_get_pointer
(
streamID1
->
m_fileID
);
auto
vlist1
=
stream_get_vlist_pointer
(
streamID1
->
m_fileID
);
#endif
int
tsID
=
0
;
while
(
true
)
{
...
...
@@ -314,8 +319,14 @@ public:
for
(
int
fieldID
=
0
;
fieldID
<
numFields
;
++
fieldID
)
{
#ifdef USE_STREAM_PTR
int
varID
,
levelID
;
pstreamInqField
(
stream1
,
&
varID
,
&
levelID
);
if
(
pvlistInqFlag
(
vlist1
,
varID
,
levelID
)
==
true
)
#else
auto
[
varID
,
levelID
]
=
cdo_inq_field
(
streamID1
);
if
(
vlistInqFlag
(
vlistID1
,
varID
,
levelID
)
==
true
)
#endif
{
auto
varID2
=
vlistFindVar
(
vlistID2
,
varID
);
auto
levelID2
=
vlistFindLevel
(
vlistID2
,
varID
,
levelID
);
...
...
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