Skip to content

Commit 1ee0c91

Browse files
committed
updating BB for SLBW/MLBW - fix j index and change it to call cssammy for reconstruction
1 parent 07b2ab6 commit 1ee0c91

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/reconr.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,19 +2611,19 @@ subroutine sigma(e,sig,sigd)
26112611
if (mode.eq.0) then
26122612
! no res parameters
26132613
call csnorp(e,sigp)
2614-
else if (mode.eq.1) then
2614+
else if (mode.eq.1.and.nmtres.eq.0) then
26152615
! single level breit-wigner
26162616
call csslbw(e,sigp)
2617-
else if (mode.eq.2.and.tempr.eq.zero) then
2617+
else if (mode.eq.2.and.tempr.eq.zero.and.nmtres.eq.0) then
26182618
! multilevel breit-wigner
26192619
call csmlbw(e,sigp)
2620-
else if (mode.eq.2.and.tempr.gt.zero) then
2620+
else if (mode.eq.2.and.tempr.gt.zero.and.nmtres.eq.0) then
26212621
! multilevel breit-wigner using g/h method
26222622
call csmlbw2(e,sigp)
26232623
else if (mode.eq.3.and.(isammy.eq.0.or.nmtres.eq.0)) then
26242624
! multi-level reich-moore (r-matrix)
26252625
call csrmat(e,sigp)
2626-
else if (mode.eq.3.and.isammy.eq.1.and.nmtres.gt.0) then
2626+
else if (mode.le.3.and.isammy.eq.1.and.nmtres.gt.0) then
26272627
! sammy calculation
26282628
call cssammy(e,sigp,siga,sigx,mmtres,nmtres,ncoef,nresp,i)
26292629
else if (mode.eq.4) then

src/samm.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ subroutine rdsammy(nin,ier,jnow,nro,naps,mode,el,eh,&
694694
lspin(i,j,ier)=0
695695
chspin(i,j,ier)=0
696696
backgr(i,j,ier)=0
697-
backgrdata(i,igroup,ier,:)=0
697+
backgrdata(i,j,ier,:)=0
698698
enddo
699699
enddo
700700
pari=1

0 commit comments

Comments
 (0)