diff --git a/examples/fortran/poisson/poisson.f90 b/examples/fortran/poisson/poisson.f90 index 2e42c48..ce4ec3c 100644 --- a/examples/fortran/poisson/poisson.f90 +++ b/examples/fortran/poisson/poisson.f90 @@ -52,7 +52,8 @@ program main real(8), allocatable :: kx(:), ky(:), kz(:) real(8), device, allocatable :: kx_d(:), ky_d(:), kz_d(:) - complex(8), allocatable :: phi(:), ua(:,:,:) + complex(8), allocatable, target :: phi(:) + complex(8), allocatable :: ua(:,:,:) complex(8), device, allocatable :: phi_d(:) complex(8), pointer, device, contiguous :: work_d(:)