Merge remote-tracking branch 'origin/release-4-6' into HEAD
[alexxy/gromacs.git] / src / gromacs / gmxlib / nonbonded / nb_kernel_adress_c / nb_kernel210_c_adress.c
index f441897fe7180b7cc2f3bf4d6cf60d3c14c9e33e..649f7bd69e423bb2990a4980b407e93aafd11d67 100644 (file)
@@ -24,6 +24,8 @@
 #define ALMOST_ONE 1-(1e-30)
 #include<math.h>
 
+#include "nb_kernel210_adress.h"
+
 
 
 /*
@@ -39,55 +41,55 @@ void nb_kernel210_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         rinvsq;
-    float         iq;
-    float         qq,vcoul,vctot;
+    real         shX,shY,shZ;
+    real         fscal,tx,ty,tz;
+    real         rinvsq;
+    real         iq;
+    real         qq,vcoul,vctot;
     int           nti;
     int           tj;
-    float         rinvsix;
-    float         Vvdw6,Vvdwtot;
-    float         Vvdw12;
-    float         krsq;
-    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         rinvsix;
+    real         Vvdw6,Vvdwtot;
+    real         Vvdw12;
+    real         krsq;
+    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;       
@@ -223,55 +225,55 @@ void nb_kernel210_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         rinvsq;
-    float         iq;
-    float         qq,vcoul,vctot;
+    real         shX,shY,shZ;
+    real         fscal,tx,ty,tz;
+    real         rinvsq;
+    real         iq;
+    real         qq,vcoul,vctot;
     int           nti;
     int           tj;
-    float         rinvsix;
-    float         Vvdw6,Vvdwtot;
-    float         Vvdw12;
-    float         krsq;
-    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         rinvsix;
+    real         Vvdw6,Vvdwtot;
+    real         Vvdw12;
+    real         krsq;
+    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;