Skip to content

Commit 1cf91a7

Browse files
committed
Declare lam as an array
Fixes certik#44.
1 parent 8f3959d commit 1cf91a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/best-practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ memory automatically and it is not possible to create memory leaks.
444444
For example you can allocate it inside a subroutine::
445445

446446
subroutine foo(lam)
447-
real(dp), allocatable, intent(out) :: lam
447+
real(dp), allocatable, intent(out) :: lam(:)
448448
allocate(lam(5))
449449
end subroutine
450450

0 commit comments

Comments
 (0)