Skip to content

Commit

Permalink
Modified groupr to fix issue #118, modified tests 2 and 11 to output …
Browse files Browse the repository at this point in the history
…the GENDF file in ascii format for testing purposes (these tests use 7 sigma0 values)
  • Loading branch information
whaeck committed Jan 23, 2019
1 parent 3602036 commit 4387cd8
Show file tree
Hide file tree
Showing 7 changed files with 16,615 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/groupr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,9 @@ subroutine groupr
502 continue
if (mtd.eq.455) then
do i=1,ndelg
ans(i,1,1)=dntc(i)
do iz=1,nz
ans(i,iz,1)=dntc(i)
enddo
enddo
nll=ndelg
endif
Expand All @@ -716,7 +718,9 @@ subroutine groupr
do i=1,ng2
j=i
if (mtd.eq.455) j=i+1
ans(il,1,j)=ff(il,i)
do iz=1,nz
ans(il,iz,j)=ff(il,i)
enddo
enddo
enddo
if (mfd.eq.5) ig=ngi
Expand Down Expand Up @@ -755,8 +759,12 @@ subroutine groupr

!--accumulate production below econst, and print it
if (econst.gt.0.and.mfd.ne.5.and.ig.ne.0.and.ig.le.jconst) then
ans(1,1,2)=ans(1,1,2)/ans(1,1,1)
prod(1,1,ig)=ans(1,1,2)
do iz=1,nz
do il=1,nl
ans(il,iz,2)=ans(il,iz,2)/ans(il,iz,1)
prod(il,iz,ig)=ans(il,iz,2)
enddo
enddo
ig2lo=0
if (ig.ge.jconst) then
call displa(ig,prod,nl,nz,jconst,ig2lo,igzero,nlg,ngi)
Expand Down Expand Up @@ -3995,6 +4003,7 @@ subroutine init(ng,nl,nz)
if (mfd.eq.3.and.mtd.eq.2) nz=nsigz
if (mfd.eq.6.and.mtd.eq.2) nz=nsigz
if (mfd.eq.3.and.mtd.eq.18) nz=nsigz
if (mfd.eq.6.and.mtd.eq.18) nz=nsigz
if (mfd.eq.3.and.mtd.eq.19) nz=nsigz
if (mfd.eq.3.and.mtd.eq.51) nz=nsigz
if (mfd.eq.3.and.mtd.eq.102) nz=nsigz
Expand Down Expand Up @@ -4384,7 +4393,7 @@ subroutine displa(ig,ans,nl,nz,ng2,ig2lo,igzero,nlg,ng2g)
if (itr.eq.0) go to 310
if (nl.eq.1) go to 250

!--infinite dilution transfer matrices.
!--infinite dilution transfer matrices (iz=1).
ilo=0
ihi=ng2
do ig2=2,ng2
Expand Down Expand Up @@ -4420,7 +4429,7 @@ subroutine displa(ig,ans,nl,nz,ng2,ig2lo,igzero,nlg,ng2g)
ng2=ihi-ilo+2
return

!--isotropic infinite dilution transfer matrix.
!--isotropic infinite dilution transfer matrix (il=1,iz=1).
250 continue
ilo=0
ihi=ng2
Expand Down
2 changes: 2 additions & 0 deletions tests/02/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/input"

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/referenceTape28"
"${CMAKE_CURRENT_BINARY_DIR}/referenceTape28" COPYONLY )
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/referenceTape29"
"${CMAKE_CURRENT_BINARY_DIR}/referenceTape29" COPYONLY )

configure_file("${RESOURCES}/t404"
"${CMAKE_CURRENT_BINARY_DIR}/tape20" COPYONLY )
Expand Down
2 changes: 2 additions & 0 deletions tests/02/input
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ ccccr
1.e5 1.e4 1000. 100. 10. 1/
moder
-24 28/
moder
-25 29/
stop
6,213 changes: 6,213 additions & 0 deletions tests/02/referenceTape29

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/input"

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/referenceTape27"
"${CMAKE_CURRENT_BINARY_DIR}/referenceTape27" COPYONLY )
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/referenceTape28"
"${CMAKE_CURRENT_BINARY_DIR}/referenceTape28" COPYONLY )

configure_file("${RESOURCES}/t404"
"${CMAKE_CURRENT_BINARY_DIR}/tape20" COPYONLY )
Expand Down
2 changes: 2 additions & 0 deletions tests/11/input
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ wimsr
1050 1 1050./
3 7 1e10 3 10.890 221 0/
1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1./
moder
-26 28
stop
10,379 changes: 10,379 additions & 0 deletions tests/11/referenceTape28

Large diffs are not rendered by default.

0 comments on commit 4387cd8

Please sign in to comment.