(j3.2006) MPI usage problems in Fortran
Aleksandar Donev
donev1
Wed Mar 19 15:18:47 EDT 2008
Bill,
You really are not reading what I am saying. I was not complaining about
VOLATILE in general. I am complaining about VOLATILE on a dummy argument, and
this business about attributes leaking out of the routine to the actual. It
is horribly misguided.
> The user
> is responsible for knowing within which program units the variable is
> subject to volatile changes, and give the variable the volatile
> attribute in those units.
Unless it is a dummy argument, in which case the standard makes no sense. Yet
alone a VALUE dummy as Van said. If a dummy is volatile, it is volatile
inside the routine. Period. There is nothing special about it. It should not
even require an explicit rules. It should not in any way affect or have
anything to do with the actual (which can have its own volatile attribute if
needed).
Best,
Aleks
More information about the J3
mailing list