according to your example, c is a dummy argument; so no question of
allocating here
renchi
On Fri, May 30, 2003 at 01:09:04PM -0400, Alvaro Fernandez wrote:
> Can an automatic array have the optional attribute? If so, does that mean it
> is only allocated inside an IF(PRESENT()) block?
>
> For example
>
> subroutine test(n,c)
> integer,intent(in) :: n
> real,intent(out),optional :: c(n)
>
> if (Present(c)) then
> ! c is allocated now?
> end if
>
>
> end subroutine test
>
>
>
> Alvaro Fernandez
|