Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add condition for new torsion potential #793

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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