& ( modelEnd .AND. .NOT.(permCheckPoint.OR.tempCheckPoint) )
LOGICAL permCheckPoint, tempCheckPoint
tempCheckPoint = .FALSE.
tempCheckPoint=
IF((thisdate(1)-prevdate(1)) .GT. 50 )tempCheckPoint=.TRUE.
IF((thisdate(1)-prevdate(1)) .GT. 5000)tempCheckPoint=.TRUE.
& ( .NOT.modelEnd .AND. (permCheckPoint.OR.tempCheckPoint) )
tempCheckPoint =