nhm-usgs / prms

Precipitation Runoff Modeling System
7 stars 9 forks source link

Data files with long line lengths cause PRMS to exit with error #6

Open pnorton-usgs opened 5 years ago

pnorton-usgs commented 5 years ago

When running PRMS for the CONUS NHM domain the program exits with an error when reading the data file. The error is: EXTRACT_time - year 60 out of range.

The constant MAXDATALNLEN in defs.h is set to 12000 which limits the max number of characters for each line read from the data file. One possible solution is to change this to 60000 which is longer than the longest line in the CONUS data file.

There is also the ability to override this on the command line with -MAXDATALNLEN .

The wording of the error does not provide sufficient indication of what is wrong and what the solution might be. Could this be altered to indicate: 1) this is related to the data file, and 2) how to solve by specifying the command line override.