zmiany w cmake i poprawka w pramreadzie
authorAdam Sieradzan <adasko@mmka.chem.univ.gda.pl>
Fri, 23 Nov 2012 11:57:40 +0000 (12:57 +0100)
committerAdam Sieradzan <adasko@mmka.chem.univ.gda.pl>
Fri, 23 Nov 2012 11:57:40 +0000 (12:57 +0100)
source/unres/src_MD/CMakeLists.txt
source/unres/src_MD/energy_p_new_barrier.F

index 72f7da3..d9139bb 100644 (file)
@@ -182,7 +182,7 @@ if(UNRES_MD_FF STREQUAL "GAB" )
 #=========================================
 elseif(UNRES_MD_FF STREQUAL "E0LL2Y")
   # set preprocesor flags   
-  set(CPPFLAGS "PROCOR -DUNRES -DISNAN -DSPLITELE -DLANG0  -DSCCORPDB" )
+  set(CPPFLAGS "PROCOR -DUNRES -DISNAN -DSPLITELE -DLANG0 -DSCCORPDB" )
 endif(UNRES_MD_FF STREQUAL "GAB")
 
 #=========================================
index c0ceab6..ba31354 100644 (file)
@@ -5320,7 +5320,8 @@ c
         do j = 1,3
           xx = xx + x_prime(j)*dc_norm(j,i+nres)
           yy = yy + y_prime(j)*dc_norm(j,i+nres)
-          zz = zz + dsign(1.0,itype(i))*z_prime(j)*dc_norm(j,i+nres)
+          zz = zz + dsign(1.0,dfloat(itype(i)))
+     &             *z_prime(j)*dc_norm(j,i+nres)
         enddo
 
         xxtab(i)=xx
@@ -5338,7 +5339,7 @@ c        write (2,*) "xx",xx," yy",yy," zz",zz
 Cc diagnostics - remove later
         xx1 = dcos(alph(2))
         yy1 = dsin(alph(2))*dcos(omeg(2))
-        zz1 = -dsign(1.0,itype(i))*dsin(alph(2))*dsin(omeg(2))
+        zz1 = -dsign(1.0, dfloat(itype(i)))*dsin(alph(2))*dsin(omeg(2))
         write(2,'(3f8.1,3f9.3,1x,3f9.3)') 
      &    alph(2)*rad2deg,omeg(2)*rad2deg,theta(3)*rad2deg,xx,yy,zz,
      &    xx1,yy1,zz1