Skip to content

Commit 491d475

Browse files
authored
Merge pull request #93 from njoy/feature/purr-endf8
Feature/purr endf8
2 parents a378bbc + 7536149 commit 491d475

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/unresr.f90

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,11 @@ subroutine rdunf2(eunr,scr,arry,jx)
592592
call ilist(enow,eunr,nunr)
593593
endif
594594
enddo
595+
if (enow.lt.eh) then
596+
write(strng,&
597+
'(''between'',1p,e12.4,'' and'',1p,e12.4,'' eV'')') enow, eh
598+
call error('rdunf2','energy dependent data undefined',strng)
599+
endif
595600
! loop over l states
596601
do l=1,nls
597602
call contio(nendf,0,0,scr,nb,nw)
@@ -669,12 +674,17 @@ subroutine rdunf2(eunr,scr,arry,jx)
669674
enddo
670675
inow=inow+6
671676
! add to list of energy nodes
677+
enow=sigfig(scr(jnow+1),7,0)
672678
if (n.ne.1.and.n.ne.ne.and.l.eq.1.and.j.eq.1) then
673-
enow=sigfig(scr(jnow+1),7,0)
674679
call ilist(enow,eunr,nunr)
675680
endif
676681
jnow=jnow+6
677682
enddo
683+
if (enow.lt.eh) then
684+
write(strng,&
685+
'(''between'',1p,e12.4,'' and'',1p,e12.4,'' eV'')') enow, eh
686+
call error('rdunf2','energy dependent data undefined',strng)
687+
endif
678688
enddo
679689
enddo
680690
if (inow.gt.jx) call error('rdunf2','storage exceeded.',' ')

src/vers.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module version
33
! These values are updated during the NJOY revision-control process.
44
implicit none
55
private
6-
character(8),public::vers='2016.38'
7-
character(8),public::vday='18Jun18'
6+
character(8),public::vers='2016.39'
7+
character(8),public::vday='03Jul18'
88
end module version
99

0 commit comments

Comments
 (0)