Skip to content

Commit

Permalink
Add condition for new torsion potential (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas3R authored Apr 5, 2023
1 parent a2615c1 commit 48547d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gfnff/gfnff_ini.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1912,12 +1912,12 @@ subroutine specialTorsList(nst, mol, topo, sTorsList)
! at this point we know that i and nbi are carbons bonded through triple bond
! check C2 and C3
do k=1, 2 ! C2 is other nb of Ci
if (topo%nb(k,i).ne.nbi) then
if (topo%nb(k,i).ne.nbi.and.mol%at(topo%nb(k,i)).eq.6) then
jj=topo%nb(k,i)
endif
enddo
do k=1, 2 ! C3 is other nb of Cnbi
if (topo%nb(k,nbi).ne.i) then
if (topo%nb(k,nbi).ne.i.and.mol%at(topo%nb(k,nbi)).eq.6) then
kk=topo%nb(k,nbi)
endif
enddo
Expand Down

0 comments on commit 48547d2

Please sign in to comment.