Skip to content

Commit

Permalink
Correctly update chain number when changing to another chain (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk authored Feb 8, 2022
1 parent 5db20f9 commit d961b6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mctc/io/write/pdb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ subroutine write_pdb(mol, unit, number)
else if (mol%pdb(iat)%chains /= last_chain) then
write(unit, '("TER ",i5,6x,a3,1x,a1,i4)') iat + offset, &
& mol%pdb(iat-1)%residue, last_chain, mol%pdb(iat)%residue_number
last_chain = mol%pdb(iat)%chains
offset = offset+1
endif

Expand Down

0 comments on commit d961b6e

Please sign in to comment.