Skip to content

Commit 638b9a5

Browse files
committed
Also declare lam as an array in the next section
1 parent 1cf91a7 commit 638b9a5

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
@@ -450,7 +450,7 @@ For example you can allocate it inside a subroutine::
450450

451451
And use somewhere else::
452452

453-
real(dp), allocatable :: lam
453+
real(dp), allocatable :: lam(:)
454454
call foo(lam)
455455

456456
When the ``lam`` symbol goes out of scope, Fortran will deallocate it. If

0 commit comments

Comments
 (0)