Merge remote-tracking branch 'origin/release-4-6' into HEAD
[alexxy/gromacs.git] / src / gromacs / gmxlib / nonbonded / nb_kernel_adress_c / nb_kernel430_c_adress.c
index dc8a43d93bd17dc5706af6c8aa87437271f5ab81..cde575c6bb61436651f0d8972e83b8a52a5b14f1 100644 (file)
@@ -24,6 +24,8 @@
 #define ALMOST_ONE 1-(1e-30)
 #include<math.h>
 
+#include "nb_kernel430_adress.h"
+
 
 
 /*
@@ -39,60 +41,60 @@ void nb_kernel430_adress_cg(
                     int *           jindex,
                     int *           jjnr,
                     int *           shift,
-                    float *         shiftvec,
-                    float *         fshift,
+                    real *         shiftvec,
+                    real *         fshift,
                     int *           gid,
-                    float *         pos,
-                    float *         faction,
-                    float *         charge,
-                    float *         p_facel,
-                    float *         p_krf,
-                    float *         p_crf,
-                    float *         Vc,
+                    real *         pos,
+                    real *         faction,
+                    real *         charge,
+                    real *         p_facel,
+                    real *         p_krf,
+                    real *         p_crf,
+                    real *         Vc,
                     int *           type,
                     int *           p_ntype,
-                    float *         vdwparam,
-                    float *         Vvdw,
-                    float *         p_tabscale,
-                    float *         VFtab,
-                    float *         invsqrta,
-                    float *         dvda,
-                    float *         p_gbtabscale,
-                    float *         GBtab,
+                    real *         vdwparam,
+                    real *         Vvdw,
+                    real *         p_tabscale,
+                    real *         VFtab,
+                    real *         invsqrta,
+                    real *         dvda,
+                    real *         p_gbtabscale,
+                    real *         GBtab,
                     int *           p_nthreads,
                     int *           count,
                     void *          mtx,
                     int *           outeriter,
                     int *           inneriter,
-                    float           force_cap,
-                    float *         wf)
+                    real           force_cap,
+                    real *         wf)
 {
     int           nri,ntype,nthreads;
-    float         facel,krf,crf,tabscale,gbtabscale;
+    real         facel,krf,crf,tabscale,gbtabscale;
     int           n,ii,is3,ii3,k,nj0,nj1,jnr,j3,ggid;
     int           nn0,nn1,nouter,ninner;
-    float         shX,shY,shZ;
-    float         fscal,tx,ty,tz;
-    float         iq;
-    float         qq,vcoul,vctot;
+    real         shX,shY,shZ;
+    real         fscal,tx,ty,tz;
+    real         iq;
+    real         qq,vcoul,vctot;
     int           nti;
     int           tj;
-    float         Vvdw6,Vvdwtot;
-    float         Vvdw12;
-    float         r,rt,eps,eps2;
+    real         Vvdw6,Vvdwtot;
+    real         Vvdw12;
+    real         r,rt,eps,eps2;
     int           n0,nnn;
-    float         Y,F,Geps,Heps2,Fp,VV;
-    float         FF;
-    float         fijC;
-    float         fijD,fijR;
-    float         isai,isaj,isaprod,gbscale,vgb;
-    float         dvdasum,dvdatmp,dvdaj,fgb;
-    float         ix1,iy1,iz1,fix1,fiy1,fiz1;
-    float         jx1,jy1,jz1;
-    float         dx11,dy11,dz11,rsq11,rinv11;
-    float         c6,c12;
-    float         weight_cg1, weight_cg2, weight_product;
-    float         hybscal;
+    real         Y,F,Geps,Heps2,Fp,VV;
+    real         FF;
+    real         fijC;
+    real         fijD,fijR;
+    real         isai,isaj,isaprod,gbscale,vgb;
+    real         dvdasum,dvdatmp,dvdaj,fgb;
+    real         ix1,iy1,iz1,fix1,fiy1,fiz1;
+    real         jx1,jy1,jz1;
+    real         dx11,dy11,dz11,rsq11,rinv11;
+    real         c6,c12;
+    real         weight_cg1, weight_cg2, weight_product;
+    real         hybscal;
 
     nri              = *p_nri;         
     ntype            = *p_ntype;       
@@ -276,60 +278,60 @@ void nb_kernel430_adress_ex(
                     int *           jindex,
                     int *           jjnr,
                     int *           shift,
-                    float *         shiftvec,
-                    float *         fshift,
+                    real *         shiftvec,
+                    real *         fshift,
                     int *           gid,
-                    float *         pos,
-                    float *         faction,
-                    float *         charge,
-                    float *         p_facel,
-                    float *         p_krf,
-                    float *         p_crf,
-                    float *         Vc,
+                    real *         pos,
+                    real *         faction,
+                    real *         charge,
+                    real *         p_facel,
+                    real *         p_krf,
+                    real *         p_crf,
+                    real *         Vc,
                     int *           type,
                     int *           p_ntype,
-                    float *         vdwparam,
-                    float *         Vvdw,
-                    float *         p_tabscale,
-                    float *         VFtab,
-                    float *         invsqrta,
-                    float *         dvda,
-                    float *         p_gbtabscale,
-                    float *         GBtab,
+                    real *         vdwparam,
+                    real *         Vvdw,
+                    real *         p_tabscale,
+                    real *         VFtab,
+                    real *         invsqrta,
+                    real *         dvda,
+                    real *         p_gbtabscale,
+                    real *         GBtab,
                     int *           p_nthreads,
                     int *           count,
                     void *          mtx,
                     int *           outeriter,
                     int *           inneriter,
-                    float           force_cap,
-                    float *         wf)
+                    real           force_cap,
+                    real *         wf)
 {
     int           nri,ntype,nthreads;
-    float         facel,krf,crf,tabscale,gbtabscale;
+    real         facel,krf,crf,tabscale,gbtabscale;
     int           n,ii,is3,ii3,k,nj0,nj1,jnr,j3,ggid;
     int           nn0,nn1,nouter,ninner;
-    float         shX,shY,shZ;
-    float         fscal,tx,ty,tz;
-    float         iq;
-    float         qq,vcoul,vctot;
+    real         shX,shY,shZ;
+    real         fscal,tx,ty,tz;
+    real         iq;
+    real         qq,vcoul,vctot;
     int           nti;
     int           tj;
-    float         Vvdw6,Vvdwtot;
-    float         Vvdw12;
-    float         r,rt,eps,eps2;
+    real         Vvdw6,Vvdwtot;
+    real         Vvdw12;
+    real         r,rt,eps,eps2;
     int           n0,nnn;
-    float         Y,F,Geps,Heps2,Fp,VV;
-    float         FF;
-    float         fijC;
-    float         fijD,fijR;
-    float         isai,isaj,isaprod,gbscale,vgb;
-    float         dvdasum,dvdatmp,dvdaj,fgb;
-    float         ix1,iy1,iz1,fix1,fiy1,fiz1;
-    float         jx1,jy1,jz1;
-    float         dx11,dy11,dz11,rsq11,rinv11;
-    float         c6,c12;
-    float         weight_cg1, weight_cg2, weight_product;
-    float         hybscal;
+    real         Y,F,Geps,Heps2,Fp,VV;
+    real         FF;
+    real         fijC;
+    real         fijD,fijR;
+    real         isai,isaj,isaprod,gbscale,vgb;
+    real         dvdasum,dvdatmp,dvdaj,fgb;
+    real         ix1,iy1,iz1,fix1,fiy1,fiz1;
+    real         jx1,jy1,jz1;
+    real         dx11,dy11,dz11,rsq11,rinv11;
+    real         c6,c12;
+    real         weight_cg1, weight_cg2, weight_product;
+    real         hybscal;
 
     nri              = *p_nri;         
     ntype            = *p_ntype;