variable content lost
- From: listad@xxxxxxxxx
- Date: 30 Mar 2007 15:03:49 -0700
Hi,
I just started writing in Fortran90 using gfortran on Mac OSX. At the
moment I am startled by this issue, which I couldnt resolve on my own:
[code]
....
write (*, '(A,F5.2)') "before:", fib%r(id,1)
call segment_distance(fib%r(id,1:3), fib%p(id,:), fib%r(m,:),&
fib%p(m,:))
write (*, '(A,F5.2)') "after", fib%r(id,1)
....
subroutine segment_distance(r, p, rr, pp)
real(dp), dimension(3), intent(in) :: r, p, rr, pp
....
end subroutine segment_distance
[/code]
The first write results in the expected "before:11.00" (defined some
place before). But I do not understand why I get "after 0.00".
If further information is required, I will happily provide more
details.
I would be glad if someone could give me a hint here.
Christian
.
- Follow-Ups:
- Re: variable content lost
- From: Steven G. Kargl
- Re: variable content lost
- From: Beliavsky
- Re: variable content lost
- Prev by Date: Re: array operations on non-conforming arrays -- do compilers catch them?
- Next by Date: Re: variable content lost
- Previous by thread: array operations on non-conforming arrays -- do compilers catch them?
- Next by thread: Re: variable content lost
- Index(es):
Relevant Pages
|
|