(j3.2006) Questions about relationship between BLOCK and DO CONCURRENT

Van Snyder Van.Snyder
Wed Jul 16 20:26:37 EDT 2008


If an object is declared within a BLOCK within a DO CONCURRENT
construct, is there a different one for each iteration?  It seems
especially important in the cases of automatic or allocatable or pointer
or polymorphic variables that they be different:

do concurrent ( i=... )
  block
    real :: A(i)
    ...
  end block
end do

do concurrent ( i=... )
  block
    real, allocatable :: A(:)
    ...
    allocate ( A(i) )
    ...
  end block
end do

do concurrent ( i=... )
  block
    class(C), allocatable :: A
    ...
    allocate ( type(C_extension(i)) :: A )
    ...
  end block
end do

-- 
Van Snyder                    |  What fraction of Americans believe 
Van.Snyder at jpl.nasa.gov       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.




More information about the J3 mailing list