Biggeonline
Technical User
Hi @ all!
I've got a little problem and hope to find sombody here who can help me...
I have to debug a code at the moment (wild mixture of all Fortran styles... well, I didn't write it) which looks more or less like this:
Means the write comes just behind the initialization - but I've found out, that it doesn't really matter where in my subroutine it stands.
My problem is now:
the values (e.g. for variable2) the routine above yields are different from those from a version where the write statement is deleted or in a comment.
How can that be? What can I do to avoid this?
I hope that somebody can give me a tip on that...
Thanks in advance!
Bigge
I've got a little problem and hope to find sombody here who can help me...
I have to debug a code at the moment (wild mixture of all Fortran styles... well, I didn't write it) which looks more or less like this:
Code:
subroutine bla(variable1,...)
...
real*8 variable1,variable2
...
write(*,*) variable1
variable2=variable1+...
...
return
end
Means the write comes just behind the initialization - but I've found out, that it doesn't really matter where in my subroutine it stands.
My problem is now:
the values (e.g. for variable2) the routine above yields are different from those from a version where the write statement is deleted or in a comment.
How can that be? What can I do to avoid this?
I hope that somebody can give me a tip on that...
Thanks in advance!
Bigge