Passing an array of undefined size to a subroutine [duplicate]
问题 This question already has an answer here : Procedure with assumed-shape dummy argument must have an explicit interface [duplicate] (1 answer) Closed 2 years ago . I am trying to pass an array of unspecified size to a subroutine like so PROGRAM GOL IMPLICIT NONE INTEGER, PARAMETER :: size_x = 16, size_y = 16 LOGICAL, DIMENSION(1:size_x,1:size_y) :: universe universe(:,:) = .FALSE. CALL COUNT_NEIGHBOURS(universe, 1, 1) END PROGRAM GOL SUBROUTINE COUNT_NEIGHBOURS (universe, x, y) LOGICAL,