- gxcart(j,1)=gxcart(j,1)+gloc_sc(intertyp,1,icg)*
- & dtauangle(j,1,1,4)
-c As potetnial DO NOT
+cc Derviative was calculated for oposite vector of side chain therefore
+c there is "-" sign before gloc_sc
+ gxcart(j,1)=gxcart(j,1)-gloc_sc(1,1,icg)*
+ & dtauangle(j,1,1,3)
+ gcart(j,1)=gcart(j,1)+gloc_sc(1,1,icg)*
+ & dtauangle(j,
+ if (itype(2).ne.10) gxcart(j,1)=gxcart(j,1)
+ &-gloc_sc(3,1,icg)*dtauangle(j,3,1,3)
+c As potetnial DO NOT depend on omicron anlge their derivative is
+c ommited