Skip to content

Commit 4d504a5

Browse files
committed
Some quality of life improvements
1 parent 7b5d2ad commit 4d504a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/groupr.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6514,6 +6514,7 @@ subroutine getyld(e,enext,idis,yld,mat,mf,mt,lfs,itape)
65146514
enext=tmp(7+2*nr)
65156515
190 continue
65166516
idis=0
6517+
if (allocated(yield)) deallocate(yield)
65176518
allocate(yield(na))
65186519
do i=1,na
65196520
yield(i)=tmp(i)

src/moder.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ subroutine moder
5959
character(4)::hb(17)
6060
real(kr)::rb(17)
6161
equivalence(hb(1),rb(1))
62-
real(kr)::a(5200)
62+
real(kr),allocatable::a(:)
6363
real(kr)::z(20)
6464
character(4)::zc(20)
6565
equivalence(zc(1),z(1))
@@ -68,6 +68,8 @@ subroutine moder
6868
ninl=0
6969
matl=-2
7070

71+
allocate(a(1000000)) ! deallocated automatically at end of subroutine
72+
7173
!--read user input, initialize,
7274
!--and write output header.
7375
call timer(time)

0 commit comments

Comments
 (0)