Ron Sverdlove x2517 <[log in to unmask]> wrote:
> For at least one compiler, I have seen behavior such as that described
> below: slow execution when calling a subroutine with explicit dimensions
> for the dummy arguments. When the explicit dimensions were replaced by
> assumed-shape, the execution speed returned to what I expected, comparable
> to similar F77 code. I don't understand why explicit dimensions of dummy
> arguments should suggest the need for copying the arrays, but that appears
> to be what was happening.
If the _actual_ argument was assumed shape, changing the dummy argument
to explicit shape or assumed size would cause a copy.
--
What fraction of Americans believe | Van Snyder
Wrestling is real and NASA is fake? | [log in to unmask]
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Dan Goldin, George Bush, the Pope, or anybody else.
|