Port to ifort

Foutran does not guarantee short-circuiting evaluation
Ref: http://www.ibiblio.org/pub/languages/fortran/ch1-8.html