Is there any performance advantage to declare multiple variables by one single statement compared to using separate statements for the declaration?
This question could be interesting for choosing between a lazy
REAL(kind=8), ALLOCATABLE :: x(:,:,:) , &
& y(:,:,:) , &
& z(:,:,:)
and a more explicit programming style
REAL(kind=8), ALLOCATABLE :: x(:,:,:)
REAL(kind=8), ALLOCATABLE :: y(:,:,:)
REAL(kind=8), ALLOCATABLE :: z(:,:,:)
Is the answer the same for global variables shared via modules and for local variables declared in subroutines?