Skip to content

Commit

Permalink
Merge pull request #93 from njoy/feature/purr-endf8
Browse files Browse the repository at this point in the history
Feature/purr endf8
  • Loading branch information
whaeck authored Jul 3, 2018
2 parents a378bbc + 7536149 commit 491d475
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion src/unresr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,11 @@ subroutine rdunf2(eunr,scr,arry,jx)
call ilist(enow,eunr,nunr)
endif
enddo
if (enow.lt.eh) then
write(strng,&
'(''between'',1p,e12.4,'' and'',1p,e12.4,'' eV'')') enow, eh
call error('rdunf2','energy dependent data undefined',strng)
endif
! loop over l states
do l=1,nls
call contio(nendf,0,0,scr,nb,nw)
Expand Down Expand Up @@ -669,12 +674,17 @@ subroutine rdunf2(eunr,scr,arry,jx)
enddo
inow=inow+6
! add to list of energy nodes
enow=sigfig(scr(jnow+1),7,0)
if (n.ne.1.and.n.ne.ne.and.l.eq.1.and.j.eq.1) then
enow=sigfig(scr(jnow+1),7,0)
call ilist(enow,eunr,nunr)
endif
jnow=jnow+6
enddo
if (enow.lt.eh) then
write(strng,&
'(''between'',1p,e12.4,'' and'',1p,e12.4,'' eV'')') enow, eh
call error('rdunf2','energy dependent data undefined',strng)
endif
enddo
enddo
if (inow.gt.jx) call error('rdunf2','storage exceeded.',' ')
Expand Down
4 changes: 2 additions & 2 deletions src/vers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module version
! These values are updated during the NJOY revision-control process.
implicit none
private
character(8),public::vers='2016.38'
character(8),public::vday='18Jun18'
character(8),public::vers='2016.39'
character(8),public::vday='03Jul18'
end module version

0 comments on commit 491d475

Please sign in to comment.