Skip to content

Commit

Permalink
Some quality of life improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Jan 27, 2025
1 parent 7b5d2ad commit 4d504a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/groupr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -6514,6 +6514,7 @@ subroutine getyld(e,enext,idis,yld,mat,mf,mt,lfs,itape)
enext=tmp(7+2*nr)
190 continue
idis=0
if (allocated(yield)) deallocate(yield)
allocate(yield(na))
do i=1,na
yield(i)=tmp(i)
Expand Down
4 changes: 3 additions & 1 deletion src/moder.f90
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ subroutine moder
character(4)::hb(17)
real(kr)::rb(17)
equivalence(hb(1),rb(1))
real(kr)::a(5200)
real(kr),allocatable::a(:)
real(kr)::z(20)
character(4)::zc(20)
equivalence(zc(1),z(1))
Expand All @@ -68,6 +68,8 @@ subroutine moder
ninl=0
matl=-2

allocate(a(1000000)) ! deallocated automatically at end of subroutine

!--read user input, initialize,
!--and write output header.
call timer(time)
Expand Down

0 comments on commit 4d504a5

Please sign in to comment.