Skip to content

Commit d268435

Browse files
committed
Set array size as parameter
1 parent b354f24 commit d268435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/moder.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ subroutine moder
5454
integer::nin,nout,no,loop,i,nz,inout
5555
integer::matd,mend,ig,nk,ik,nb,nw
5656
integer::nscr,ninl,matl
57+
integer,parameter::nbuf=1000000
5758
real(kr)::time
5859
character(105)::strng
5960
character(4)::hb(17)
@@ -68,7 +69,7 @@ subroutine moder
6869
ninl=0
6970
matl=-2
7071

71-
allocate(a(1000000)) ! deallocated automatically at end of subroutine
72+
allocate(a(nbuf)) ! deallocated automatically at end of subroutine
7273

7374
!--read user input, initialize,
7475
!--and write output header.

0 commit comments

Comments
 (0)