Skip to content

Commit

Permalink
Merge pull request #145 from njoy/fix/tendl-zero-awr
Browse files Browse the repository at this point in the history
Added an error message to detect zero awp values for non photons
  • Loading branch information
whaeck authored Jan 22, 2020
2 parents e2d4c84 + ef41db2 commit e7eae75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/heatr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2791,6 +2791,14 @@ subroutine sixbar(e,ebar,yld,dame,nin,c,ncmax,nscr,b,nbmax,&
awp=c2h
law=l2h
l=l+nw

!--error for awp=0. for non photons
if (zap.ne.0.and.awp.eq.0) then
write(strng,'(''awp is zero for for mt'',i3,'' particle '',i5)')&
mth,nint(zap)
call error('sixbar',strng,' ')
endif

do while (nb.ne.0)
call moreio(nin,0,0,c(l),nb,nw)
l=l+nw
Expand Down
4 changes: 2 additions & 2 deletions src/vers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module version
! These values are updated during the NJOY revision-control process.
implicit none
private
character(8),public::vers='2016.53'
character(8),public::vday='07Nov19'
character(8),public::vers='2016.54'
character(8),public::vday='16Jan20'
end module version

0 comments on commit e7eae75

Please sign in to comment.