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

cdiwrite: added timings for every time step

parent 7da7338b
......@@ -787,6 +787,7 @@ enable_fast_install
enable_dependency_tracking
with_gnu_ld
enable_libtool_lock
with_gnu_ld
enable_largefile
with_threads
with_zlib
......@@ -814,8 +815,12 @@ LDFLAGS
LIBS
CPPFLAGS
CPP
CPPFLAGS
CXX
CXXFLAGS
LDFLAGS
LIBS
CPPFLAGS
CCC
CXXCPP'
ac_subdirs_all='libcdi'
......
......@@ -100,7 +100,7 @@ void *CDIwrite(void *argument)
unsigned int seed = 1;
const char *gridfile;
double file_size, data_size = 0;
double tw;
double tw, t0;
double *levels = NULL;
double ***vars = NULL;
extern int timer_write;
......@@ -172,6 +172,8 @@ void *CDIwrite(void *argument)
julday = date_to_julday(CALENDAR_PROLEPTIC, 19870101);
t0 = timer_val(timer_write);
for ( tsID = 0; tsID < ntimesteps; tsID++ )
{
rval = rstart + rinc*tsID;
......@@ -190,6 +192,13 @@ void *CDIwrite(void *argument)
data_size += gridsize*8;
}
}
if ( cdoVerbose )
{
tw = timer_val(timer_write) - t0;
t0 = timer_val(timer_write);
cdoPrint("Timestep %d: %.2f seconds", tsID+1, tw);
}
}
streamClose(streamID);
......
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