else if ( mod(firstmonth+1,nmonthyear) .eq. lastmonth ) then
integer lastmonth
lastmonth = mod(modelenddate(1)/100,100)
if ( firstmonth .eq. lastmonth ) then
lastmonth = nmonthyear - firstmon + 1
lastmonth = (nmonthyear - firstmon + 1) +
lastmonth = (nmonthyear - firstmon) +
nmonths = lastmonth - firstmonth + 1
lastmonth = lastmon - firstmon
lastmonth = lastmon - firstmon + 1
O lastmonth,