My environment is Ubuntu 14.04 (just updated from 12.04), with the default gfortran 4.8.2.
I have this block of code:
Code:
mod1 = MOD(couZero,100)
if (mod1 == 0) <=== error
write (6,*) "couZero = ", couZero
endif
if (MOD(couOne,100) .eq. 0) <=== error
write (6,*) "couOne = ", couOne
endif
I get identical error messages on statements marked with left oriented arrows:
Code:
Error: Cannot assign to a named constant at (1)
What does the compiler want? How can I change this simple expression?
Thanks, - Alex