Phillip Helbig---undress to reply <
hel...@astro.multiCLOTHESvax.de>
wrote:
> However, I have to do this
>
> IF (PRESENT(K_O)) THEN K_O = K
>
> Is there a reason for this? Of course, in some cases one might not want
> to calculated any value for the variable if it is not present, so
> PRESENT is of course useful in such cases. However, I was hoping that I
> could give K_O a value even if it isn't present in the argument list.
> Of course, in that case the calling routine would know nothing about it,
> but that is neither here nor there.
I have long advocated for an option that allows you to specify that an
optional dummy with a non-present actual argument just acts like a local
variable. But I've had no sucess with pushing that. (Yes, there would
need to be additional complications in the specification of handling
things like assumed shape dummies).
--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain