Commit e6ac07ef authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added initialisation for lseed

parent e8ab8b26
......@@ -278,7 +278,7 @@ cdo_usage()
fprintf(stderr, " -g <grid> Set default grid name or file. Available grids: \n");
" F<XXX>, t<RES>, tl<RES>, global_<DXY>, r<NX>x<NY>, g<NX>x<NY>, gme<NI>, lon=<LON>/lat=<LAT>\n");
fprintf(stderr, " -h, --help Help information for the operators\n");
fprintf(stderr, " -h, --help Help information for the perators\n");
fprintf(stderr, " --history Do not append to NetCDF \"history\" global attribute\n");
fprintf(stderr, " --netcdf_hdr_pad, --hdr_pad, --header_pad <nbr>\n");
fprintf(stderr, " Pad NetCDF output header with nbr bytes\n");
......@@ -1085,7 +1085,7 @@ parse_options_long(int argc, char *argv[])
int lsortname;
int lsortparam;
int ldebLevel;
int lseed;
int lseed = 0;
int lscmode;
int lconfig;
int verbose;
......@@ -1252,6 +1252,7 @@ parse_options_long(int argc, char *argv[])
else if (lseed)
std::cout << "LSEED WTF" << std::endl;
const int intarg = parameter2int(CDO_optarg);
if (intarg < 0) cdoAbort("Unsupported value for option --seed %d [>=0]", intarg);
Options::Random_Seed = intarg;
Markdown is supported
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