Skip to content

Commit

Permalink
NEB hasmiddle bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmejiar committed Jan 17, 2024
1 parent acfe55e commit f53eb6f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/optim/neb/neb_utils.F
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,11 @@ subroutine neb_initial_path(rtdb,bead_list,nbeads)
if (.not.geom_rtdb_load(rtdb,geom,'midgeom')) then
hasmiddle = .false.
end if
else
if (.not.geom_cart_coords_get(geom,dbl_mb(rmid(1))))
> call errquit('neb_initial_path failed',2,0)
end if
endif
endif
if (hasmiddle) then
if (.not.geom_cart_coords_get(geom,dbl_mb(rmid(1))))
> call errquit('neb_initial_path failed',2,0)
end if

if (oprint) then
Expand Down

0 comments on commit f53eb6f

Please sign in to comment.