Changed to set TIME_LENGTH=1Y for PeriodLength?=1Y. Before number of days in the year was calculated. Modification necessary for use of the variable CyclicYear?.