----- Original Message -----
From: <[log in to unmask]>
To: <[log in to unmask]>
Sent: Monday, November 22, 2004 6:59 AM
Subject: Re: g95 runs on Windows
> do i=1,n
> x = 1.0d0*i
> x = 1/x
> x = dexp(x)
> y = y + x
> end do
Since neither x nor y is used outside the loop, their calculation is
potentially optimized away. For this sort of test, you need to print x and y
after the loop.
Regards,
Mike Metcalf
|