Skip to content

Commit

Permalink
fix gfnff restart (grimme-lab#992)
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
  • Loading branch information
Thomas3R authored and gorges97 committed Mar 27, 2024
1 parent 88fcfeb commit b544c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restart.f90
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ subroutine read_restart_gff(env,fname,n,version,success,verbose,topo,neigh)
call gfnff_param_alloc(topo,neigh, n)
if (.not.allocated(topo%ispinsyst)) allocate( topo%ispinsyst(n,topo%maxsystem), source = 0 )
if (.not.allocated(topo%nspinsyst)) allocate( topo%nspinsyst(topo%maxsystem), source = 0 )
if (.not.allocated(neigh%nr_hb)) allocate(neigh%nr_hb(neigh%nbond))
read(ich) neigh%blist
read(ich) topo%alist
read(ich) topo%tlist
Expand All @@ -151,7 +152,6 @@ subroutine read_restart_gff(env,fname,n,version,success,verbose,topo,neigh)
if (.not.allocated(neigh%vbond)) allocate (neigh%vbond(3,neigh%nbond))
if (.not.allocated(neigh%nb)) allocate (neigh%nb(neigh%numnb,n,neigh%numctr))
if (.not.allocated(neigh%blist)) allocate (neigh%blist(3,neigh%nbond))
if (.not.allocated(neigh%nr_hb)) allocate(neigh%nr_hb(neigh%nbond))
if (.not.allocated(neigh%vbond)) allocate(neigh%vbond(3,neigh%nbond))
if (.not.allocated(neigh%bpair)) allocate(neigh%bpair(n,n,neigh%numctr))
if (.not.allocated(neigh%iTrSum)) allocate(neigh%iTrSum(neigh%iTrDim*(neigh%iTrDim+1)/2))
Expand Down

0 comments on commit b544c33

Please sign in to comment.