On Mon, Mar 27, 2006, Ross Walker wrote:
>
> > vlength = 1.0d0/sqrt(vlength) !DIVIDE BY ZERO
> > if (vlength<1000.0d0) then
> > vector(1:dim) = vector(1:dim)*vlength
> > else
> > vector(1:dim) = 0.d0
> > end if
>
> becomes:
>
> if (vlength>1.0d-6) then
> vlength = 1.0d0/sqrt(vlength)
> vector(1:dim) = vector(1:dim)*vlength
> else
> vector(1:dim) = 0.d0
> end if
fixed in CVS....dac
Received on Wed Apr 05 2006 - 23:49:35 PDT