It would be good to avoid hard-coded numerals in the source code. Use SECPHOUR instead of 3600. and HOURSPERDAY instead of 24, both of which are already defined in vicNl_def.h