Commit e5999d13 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

These files are directly used in the documentation. Please do not change these files!

parent 74f547bc
......@@ -104,6 +104,7 @@ doc/tex/vlist.tex -text
doc/tex/zaxis.tex -text
examples/Makefile.am -text
examples/Makefile.in -text
examples/README -text
examples/cdi_copy.c -text
examples/cdi_copy_f.f -text
examples/cdi_copy_file.c -text
......
The following C Source files
cdi_read.c
cdi_write.c
cdi_copy.c
are directly used in the documentation.
!!! Please do not change these files !!!
......@@ -9,7 +9,7 @@ int nts = 3; // Number of time steps
int main(void)
{
int taxisID, vlistID1, vlistID2, varID1, varID2, streamID1, streamID2, tsID;
int nmiss;
int nmiss, vdate, vtime;
double var1[nlon*nlat];
double var2[nlon*nlat*nlev];
......@@ -51,8 +51,8 @@ int main(void)
streamInqTimestep(streamID1, tsID);
// Get the verification date and time
/* int vdate = */taxisInqVdate(taxisID);
/* int vtime = */taxisInqVtime(taxisID);
vdate = taxisInqVdate(taxisID);
vtime = ttaxisInqVtime(taxisID);
// Define the output time step
streamDefTimestep(streamID2, tsID);
......
......@@ -9,7 +9,7 @@ int nts = 3; // Number of time steps
int main(void)
{
int taxisID, vlistID, varID1, varID2, streamID, tsID;
int nmiss;
int nmiss, vdate, vtime;
double var1[nlon*nlat];
double var2[nlon*nlat*nlev];
......@@ -39,8 +39,8 @@ int main(void)
streamInqTimestep(streamID, tsID);
// Get the verification date and time
/* int vdate = */taxisInqVdate(taxisID);
/* int vtime = */taxisInqVtime(taxisID);
vdate = taxisInqVdate(taxisID);
vtime = taxisInqVtime(taxisID);
// Read var1 and var2
streamReadVar(streamID, varID1, var1, &nmiss);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment