poprawka w src-MD
authorAdam Kazimierz Sieradzan <adasko@sun1.chem.univ.gda.pl>
Thu, 6 Sep 2012 10:45:27 +0000 (06:45 -0400)
committerAdam Kazimierz Sieradzan <adasko@sun1.chem.univ.gda.pl>
Thu, 6 Sep 2012 10:45:27 +0000 (06:45 -0400)
source/unres/src_MD/int_to_cart.f

index 1051218..272d39b 100644 (file)
@@ -162,7 +162,8 @@ c     Calculating the remainder of dE/ddc2
          if((itype(2).ne.10).and.(itype(2).ne.ntyp1)) then
            if (itype(1).ne.10) gxcart(j,2)=gxcart(j,2)+
      &                         gloc_sc(3,0,icg)*dtauangle(j,3,3,3)
-        if ((itype(3).ne.10).and.(nres.ge.3).and.(itype(3).ne.ntyp1)) then
+        if ((itype(3).ne.10).and.(nres.ge.3).and.(itype(3).ne.ntyp1))
+     &   then
            gxcart(j,2)=gxcart(j,2)-gloc_sc(3,1,icg)*dtauangle(j,3,1,4)
 cc                  the   - above is due to different vector direction
            gcart(j,2)=gcart(j,2)+gloc_sc(3,1,icg)*dtauangle(j,3,2,4)