Skip to content

Commit

Permalink
HELIUM: Correct acceptance ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
cschran authored and hforbert committed Sep 12, 2019
1 parent 675757b commit a7b22e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/motion/helium_worm.F
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ SUBROUTINE helium_sample_worm(helium, pint_env)
! Save naccepted and ntot
helium%num_accepted(1, 1) = ncentracc+nstagacc+nopenacc+ncloseacc+nswapacc+ &
nmoveheadacc+nmovetailacc+ncrawlfwdacc+ncrawlbwdacc
helium%num_accepted(2, 1) = ntot
helium%num_accepted(2, 1) = ncentratt+nstagatt+nopenatt+ncloseatt+nswapatt+ &
nmoveheadatt+nmovetailatt+ncrawlfwdatt+ncrawlbwdatt

! Calculate last_force
IF (helium%solute_present) THEN
Expand Down Expand Up @@ -559,8 +560,6 @@ REAL(KIND=dp) FUNCTION worm_centroid_move_action(pint_env, helium, pos, iatom, x
LOGICAL :: incycle
REAL(KIND=dp), DIMENSION(3) :: r, rp

! is worm in cycle

! compute action difference
! action before the move from pos array
partaction = 0.0_dp
Expand Down Expand Up @@ -756,8 +755,6 @@ REAL(KIND=dp) FUNCTION worm_centroid_move_inter_action(pint_env, helium, pos, ia
INTEGER :: jatom, jbead
REAL(KIND=dp) :: energy

! is worm in cycle

partaction = 0.0_dp
! spcial treatment if worm is in moved cycle
IF (winc) THEN
Expand Down

0 comments on commit a7b22e4

Please sign in to comment.