Remove ISNAN, replace with .NOT.(umax.eq.umax) for compilation on turing.