Skip to content

Commit

Permalink
Update gfnff_lists JSON output (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas3R committed Mar 28, 2024
1 parent 8e9a8ea commit a73499f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/json.F90
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ subroutine write_json_gfnff_lists(n, etot, gnorm, topo, neigh, nlist, printTopo)
write (iunit, '("]")')
write (iunit, '(3x,"],")')
end if
if (printTopo%blist) then ! blist(2,nbond)
if (printTopo%blist) then ! blist(3,nbond)
write (iunit, '(3x,''"blist":'',"[")')
do j = 1, neigh%nbond - 1
write (iunit, '(3x,"[",*(i8,:,","))', advance='no') topo%blist(:, j)
write (iunit, '(3x,"[",*(i8,:,","))', advance='no') neigh%blist(:, j)
write (iunit, '("],")')
end do
write (iunit, '(3x,"[",*(i8,:,","),"]",/)', advance='no') topo%blist(:, neigh%nbond)
write (iunit, '(3x,"[",*(i8,:,","),"]",/)', advance='no') neigh%blist(:, neigh%nbond)
write (iunit, '("]")')
write (iunit, '(3x,"],")')
end if
Expand Down

0 comments on commit a73499f

Please sign in to comment.