Skip to content

Commit

Permalink
Docking code clean up
Browse files Browse the repository at this point in the history
Signed-off-by: cplett <[email protected]>
  • Loading branch information
cplett committed Aug 29, 2024
1 parent 89df5b4 commit 3712b15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/docking/search_nci.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1067,13 +1067,11 @@ subroutine restart_gff(env, mol, calc)
call newD3Model(calc%topo%dispm, mol%n, mol%at)
call gfnff_set_param(mol%n, calc%gen, calc%param)
if (allocated(calc%neigh%nb)) deallocate(calc%neigh%nb)
if (.not. allocated(calc%neigh%nb)) allocate (calc%neigh%nb(calc%neigh%numnb, mol%n, calc%neigh%numctr), source=0)
allocate (calc%neigh%nb(calc%neigh%numnb, mol%n, calc%neigh%numctr), source=0)
if (allocated(calc%topo%qfrag)) deallocate(calc%topo%qfrag)
if (.not.allocated(calc%topo%qfrag)) &
& allocate( calc%topo%qfrag(mol%n), source = 0.0d0 )
allocate( calc%topo%qfrag(mol%n), source = 0.0d0 )
if (allocated(calc%topo%fraglist)) deallocate(calc%topo%fraglist)
if (.not.allocated(calc%topo%fraglist)) &
& allocate( calc%topo%fraglist(mol%n), source = 0 )
allocate( calc%topo%fraglist(mol%n), source = 0 )
if (allocated(calc%neigh%iTrUsed)) deallocate(calc%neigh%iTrUsed)
if (allocated(calc%neigh%bpair)) deallocate(calc%neigh%bpair)
if (allocated(calc%neigh%blist)) deallocate(calc%neigh%blist)
Expand Down

0 comments on commit 3712b15

Please sign in to comment.