endIOErrCount = IO_ERRCOUNT(myThid)
IF ( endIOErrCount .NE. beginIOErrCount ) THEN
INTEGER endIOErrCount