what is this extra argument to this subroutine?
From: Ben Barrowes (barrowes_at_alum.mit.edu)
Date: 03/25/05
- Next message: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Previous message: Ira Baxter: "Re: Source code obfuscation"
- Next in thread: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Reply: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Reply: Bart Vandewoestyne: "Re: what is this extra argument to this subroutine?"
- Reply: beliavsky_at_aol.com: "Re: what is this extra argument to this subroutine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Mar 2005 15:56:35 -0700
In subpack.f90, I found an extra argument to a subroutine even though
the corresponding subroutine apparently does not support the argument.
The call is:
call perm_print ( n, p, ' The original permutation:' )
while the subroutine is simply:
subroutine perm_print ( n, p )
implicit none
integer n
integer i
integer ihi
integer ilo
integer, parameter :: inc = 20
integer p(n)
do ilo = 1, n, inc
ihi = min ( n, ilo + inc - 1 )
write ( *, '(a)' ) ' '
write ( *, '(20i4)' ) ( i,i = ilo, ihi )
write ( *, '(20i4)' ) p(ilo:ihi)
end do
return
end
What is going on with this call? Is:
' The original permutation:'
written to stdout or something?
Thanks,
Ben
- Next message: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Previous message: Ira Baxter: "Re: Source code obfuscation"
- Next in thread: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Reply: Richard E Maine: "Re: what is this extra argument to this subroutine?"
- Reply: Bart Vandewoestyne: "Re: what is this extra argument to this subroutine?"
- Reply: beliavsky_at_aol.com: "Re: what is this extra argument to this subroutine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|