Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
libcdi
Commits
b0346418
Commit
b0346418
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
cdiGetProtocol(): disable CDI_PROTOCOL_FILE; file:// is also used for NetCDF zarr.
parent
bc23fd1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#18967
failed
1 month ago
Stage: external
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/stream.c
+3
-3
3 additions, 3 deletions
src/stream.c
with
3 additions
and
3 deletions
src/stream.c
+
3
−
3
View file @
b0346418
...
...
@@ -459,7 +459,7 @@ cdiGetProtocol(const char *uri, const char **filename)
const
int
protocollen
=
pos
-
uri
;
*
filename
=
pos
+
3
;
if
(
strncmp
(
uri
,
"file"
,
protocollen
)
==
0
)
return
CDI_PROTOCOL_FILE
;
//
if (strncmp(uri, "file", protocollen) == 0) return CDI_PROTOCOL_FILE;
// file is already used in NetCDF
if
(
strncmp
(
uri
,
"fdb"
,
protocollen
)
==
0
)
return
CDI_PROTOCOL_FDB
;
if
(
strncmp
(
uri
,
"across"
,
protocollen
)
==
0
)
return
CDI_PROTOCOL_ACROSS
;
...
...
@@ -1405,7 +1405,7 @@ streamInqTimestep(int streamID, int tsID)
{
int
nrecs
=
0
;
stream_t
*
streamptr
=
stream_to_pointer
(
streamID
);
int
vlistID
=
streamptr
->
vlistID
;
const
int
vlistID
=
streamptr
->
vlistID
;
if
(
tsID
<
streamptr
->
ntsteps
)
streamptr
->
tsteps
[
tsID
].
curRecID
=
CDI_UNDEFID
;
// fix for netCDF
if
(
tsID
<
streamptr
->
rtsteps
)
...
...
@@ -1422,7 +1422,7 @@ streamInqTimestep(int streamID, int tsID)
if
(
tsID
>=
streamptr
->
ntsteps
&&
streamptr
->
ntsteps
!=
CDI_UNDEFID
)
return
0
;
int
filetype
=
streamptr
->
filetype
;
const
int
filetype
=
streamptr
->
filetype
;
if
(
CDI_Debug
)
Message
(
"streamID = %d tsID = %d filetype = %d"
,
streamID
,
tsID
,
filetype
);
...
...
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