bug fix in energy src_MD-M
authorAdam Sieradzan <adasko@piasek4.chem.univ.gda.pl>
Wed, 11 May 2016 15:19:27 +0000 (17:19 +0200)
committerAdam Sieradzan <adasko@piasek4.chem.univ.gda.pl>
Wed, 11 May 2016 15:19:27 +0000 (17:19 +0200)
source/unres/src_MD-M/energy_p_new_barrier.F

index 6078e06..f7ff34c 100644 (file)
@@ -3636,6 +3636,7 @@ c        if ((zmedi.gt.((0.5d0)*boxzsize)).or.
 c     &       (zmedi.lt.((-0.5d0)*boxzsize))) then
 c        go to 196
 c        endif
+          xmedi=mod(xmedi,boxxsize)
           if (xmedi.lt.0) xmedi=xmedi+boxxsize
           ymedi=mod(ymedi,boxysize)
           if (ymedi.lt.0) ymedi=ymedi+boxysize