ctest for src-M are off
[unres.git] / source / unres / src_MD-M / gradient_p.F
index acd4472..7295d2e 100644 (file)
@@ -389,6 +389,17 @@ C
           enddo
         enddo
       enddo
+c
+c Initialize the gradients of local restraints
+c
+      do i=1,nres
+        dutheta(i)=0.0d0
+        dugamma(i)=0.0d0
+        do j=1,3
+          duscdiff(j,i)=0.0d0
+          duscdiffx(j,i)=0.0d0
+        enddo
+      enddo
 C
 C Initialize the gradient of local energy terms.
 C