print same variable twice and get two different values.

print same variable twice and get two different values.

I have a very strange problem where I have two write statements (this was for debugging purpose) of such
write(*,*) 'BLA ERR1 = ',ERR
write(*,*) 'BLA ERR2 = ',ERR

and I get
BLA ERR1 = 0.0000
BLA ERR2 = 1000.00

Can anyone speculate where the problem may be?

Thanks.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.