Skip to content
Snippets Groups Projects
Commit 2432f661 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Document polymorphic implementation for cdfDefTimestep.

parent f41b2937
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -1322,6 +1322,9 @@ cdiStreamDefTimestep_(stream_t *streamptr, int tsID)
#ifdef HAVE_LIBNETCDF
if (cdiBaseFiletype(streamptr->filetype) == CDI_FILETYPE_NETCDF && timeIsVarying)
{
/* usually points to cdfDefTimestep in serial mode but
* cdiPioCdfDefTimestep on servers on a null-op on
* clients in client/server mode */
void (*myCdfDefTimestep)(stream_t * streamptr, int tsID)
= (void (*)(stream_t *, int)) namespaceSwitchGet(NSSWITCH_CDF_DEF_TIMESTEP).func;
myCdfDefTimestep(streamptr, tsID);
......
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