currentyear = firstyear
integer firstyear
lyfirst = cal_IsLeap( firstyear, mythid )
firstyear = modelstartdate(1)/10000
if ( lastyear .eq. (firstyear + numyears - 1) ) then
else if ( lastyear .eq. (firstyear + numyears) ) then
if ( firstyear .eq. lastyear ) then
else if ( firstyear+1 .eq. lastyear ) then