From 4d504a59323aa014d1161ee61223d9b0f2a5063d Mon Sep 17 00:00:00 2001 From: Wim Haeck Date: Mon, 27 Jan 2025 14:51:42 -0700 Subject: [PATCH] Some quality of life improvements --- src/groupr.f90 | 1 + src/moder.f90 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/groupr.f90 b/src/groupr.f90 index 522d5a4e..ba102e24 100644 --- a/src/groupr.f90 +++ b/src/groupr.f90 @@ -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) diff --git a/src/moder.f90 b/src/moder.f90 index 36de6e58..4cc25a64 100644 --- a/src/moder.f90 +++ b/src/moder.f90 @@ -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)) @@ -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)