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