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

Seltime: abort if no timestep is seleced

parent 2e8b3d30
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@
* Version 1.6.9 released
* clipping: update to YAC version 1.0.3
2015-04-02 Uwe Schulzweida
* Seltime: abort if no timestep is seleced
2015-03-27 Uwe Schulzweida
* Fldstat: added parameter noweights to use constant grid cell area weights
......
......@@ -689,6 +689,8 @@ void *Seltime(void *argument)
vlistDestroy(vlistID2);
if ( tsID2 == 0 ) cdoAbort("No timesteps selected!");
cdoFinish();
return (NULL);
......
......@@ -133,8 +133,7 @@ void cdo_version(void)
static
void cdo_usage(void)
{
int id = 0;
char *name;
const char *name;
/* fprintf(stderr, "%s\n", CDO_Version);*/
/* fprintf(stderr, "\n");*/
......@@ -157,7 +156,7 @@ void cdo_usage(void)
/*
fprintf(stderr, " -i <inst> Institution name/file\n");
fprintf(stderr, " Predefined instituts: ");
for ( id = 0; id < institutInqNumber; id++ )
for ( int id = 0; id < institutInqNumber; id++ )
if ( (name = institutInqNamePtr(id)) )
fprintf(stderr, " %s", name);
fprintf(stderr, "\n");
......@@ -180,7 +179,7 @@ void cdo_usage(void)
fprintf(stderr, " -s, --silent Silent mode\n");
fprintf(stderr, " -t <partab> Set default parameter table name or file\n");
fprintf(stderr, " Predefined tables: ");
for ( id = 0; id < tableInqNumber(); id++ )
for ( int id = 0; id < tableInqNumber(); id++ )
if ( (name = tableInqNamePtr(id)) )
fprintf(stderr, " %s", name);
fprintf(stderr, "\n");
......
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