Skip to content
Snippets Groups Projects
Commit b0346418 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdiGetProtocol(): disable CDI_PROTOCOL_FILE; file:// is also used for NetCDF zarr.

parent bc23fd1d
No related branches found
No related tags found
No related merge requests found
Pipeline #18967 failed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment