Skip to content

Commit dff41e9

Browse files
authored
Merge pull request #343 from njoy/fix/viewr-array
Increasing array size
2 parents 0b9da73 + 0ede4e2 commit dff41e9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ReleaseNotes.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Given here are some release notes for NJOY2016. Each release is made through a f
44
## [NJOY2016.77](https://github.com/njoy/NJOY2016/pull/xxx)
55
This update fixes the following issues:
66
- Background cross section values for reactions other than total, elastic, fission and capture were not handled properly in the unresolved resonance region. The background for total, elastic, fission and capture is integrated into the unresolved resonance cross section values in the genunr subroutine. In the emerge subroutine, the background in the unresolved resonance region was therefore zeroed out for any resonance reaction. This has never been an issue but now we have LRF=7 evaluations that can define reactions other than total, elastic, fission and capture. Test 82 was added to detect this issue in the future.
7+
- Increased the size of internal arrays in VIEWR.
78

89
## [NJOY2016.76](https://github.com/njoy/NJOY2016/pull/340)
910
This update fixes the following issues:

src/viewr.f90

+6-3
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ subroutine viewr
340340
real(kr)::xx,yy,zz
341341
character(80)::text
342342
integer,parameter::mmax=20000 !same in plotr and viewr
343-
integer,parameter::maxaa=200000
343+
integer,parameter::maxaa=500000
344344
real(kr),dimension(15)::z
345345
real(kr),dimension(maxaa)::aa
346346
real(kr),dimension(mmax)::x,y,b,dxm,dxp,dym,dyp
@@ -1269,10 +1269,11 @@ subroutine set3d(iplot,xyz,nxyz)
12691269
integer::iplot,nxyz
12701270
real(kr)::xyz(nxyz)
12711271
! internals
1272+
integer,parameter::length=2000
12721273
integer::i,j,nn,k,ncurv,major,minor,itop,ibot,l,n
12731274
real(kr)::wt,xlo,xhi,ylo,yhi,zlo,zhi,xn,yn,zn,yy
12741275
real(kr)::top,bot,xop,yop,zop
1275-
integer::lll(400)
1276+
integer::lll(length)
12761277
real(kr)::x(2000),y(2000),z(2000)
12771278
real(kr),parameter::big=1.e10_kr
12781279
real(kr),parameter::d0=.001e0_kr
@@ -1322,6 +1323,9 @@ subroutine set3d(iplot,xyz,nxyz)
13221323
enddo
13231324
i=i+2+2*nn
13241325
j=j+1
1326+
if (j.gt.length) then
1327+
call error('set3d','array overflow, increase the length parameter',' ')
1328+
endif
13251329
endif
13261330
enddo
13271331
ncurv=j-1
@@ -1663,4 +1667,3 @@ subroutine ascalv(m,z1,z2,major,minor)
16631667
end subroutine ascalv
16641668

16651669
end module viewm
1666-

0 commit comments

Comments
 (0)