Commit d4559528 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Remove __mul24 calls

parent 82a90aac
...@@ -81,7 +81,7 @@ void amoebaMapTorqueToForce_kernel( float* torque ) ...@@ -81,7 +81,7 @@ void amoebaMapTorqueToForce_kernel( float* torque )
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
int ii; int ii;
int particleIndex = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int particleIndex = blockIdx.x*blockDim.x + threadIdx.x;
float4* atomCoord = cSim.pPosq; float4* atomCoord = cSim.pPosq;
int4* multiPoleAtoms = cAmoebaSim.pMultipoleParticlesIdsAndAxisType; int4* multiPoleAtoms = cAmoebaSim.pMultipoleParticlesIdsAndAxisType;
......
...@@ -253,7 +253,7 @@ void kInitializeMutualInducedAndGkField_kernel( ...@@ -253,7 +253,7 @@ void kInitializeMutualInducedAndGkField_kernel(
float* inducedDipolePolarS ) float* inducedDipolePolarS )
{ {
int pos = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int pos = blockIdx.x*blockDim.x + threadIdx.x;
while( pos < 3*cSim.atoms ) while( pos < 3*cSim.atoms )
{ {
...@@ -354,7 +354,7 @@ void kSorUpdateMutualInducedAndGkField_kernel( ...@@ -354,7 +354,7 @@ void kSorUpdateMutualInducedAndGkField_kernel(
{ {
float polarSOR = 0.70f; float polarSOR = 0.70f;
int pos = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int pos = blockIdx.x*blockDim.x + threadIdx.x;
while( pos < 3*cSim.atoms ) while( pos < 3*cSim.atoms )
{ {
...@@ -391,7 +391,7 @@ void kSorUpdateMutualInducedAndGkFieldS_kernel( ...@@ -391,7 +391,7 @@ void kSorUpdateMutualInducedAndGkFieldS_kernel(
{ {
float polarSOR = 0.70f; float polarSOR = 0.70f;
int pos = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int pos = blockIdx.x*blockDim.x + threadIdx.x;
while( pos < 3*cSim.atoms ) while( pos < 3*cSim.atoms )
{ {
float previousDipole = inducedDipole[pos]; float previousDipole = inducedDipole[pos];
......
...@@ -118,7 +118,7 @@ void kInitializeMutualInducedField_kernel( ...@@ -118,7 +118,7 @@ void kInitializeMutualInducedField_kernel(
float* polarizability ) float* polarizability )
{ {
int pos = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int pos = blockIdx.x*blockDim.x + threadIdx.x;
while( pos < 3*cSim.atoms ) while( pos < 3*cSim.atoms )
{ {
...@@ -194,7 +194,7 @@ void kSorUpdateMutualInducedField_kernel( ...@@ -194,7 +194,7 @@ void kSorUpdateMutualInducedField_kernel(
{ {
float polarSOR = 0.70f; float polarSOR = 0.70f;
int pos = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int pos = blockIdx.x*blockDim.x + threadIdx.x;
while( pos < 3*cSim.atoms ) while( pos < 3*cSim.atoms )
{ {
......
...@@ -84,7 +84,7 @@ void kCudaComputeCheckChiral_kernel( void ) ...@@ -84,7 +84,7 @@ void kCudaComputeCheckChiral_kernel( void )
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
int particleIndex = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int particleIndex = blockIdx.x*blockDim.x + threadIdx.x;
int numberOfParticles = cSim.atoms; int numberOfParticles = cSim.atoms;
while( particleIndex < numberOfParticles ) while( particleIndex < numberOfParticles )
{ {
...@@ -146,7 +146,7 @@ void kCudaComputeLabFrameMoments_kernel( void ) ...@@ -146,7 +146,7 @@ void kCudaComputeLabFrameMoments_kernel( void )
float vectorY[3]; float vectorY[3];
float vectorZ[3]; float vectorZ[3];
int particleIndex = __mul24(blockIdx.x,blockDim.x) + threadIdx.x; int particleIndex = blockIdx.x*blockDim.x + threadIdx.x;
float4* particleCoord = cSim.pPosq; float4* particleCoord = cSim.pPosq;
int4* multiPoleParticles = cAmoebaSim.pMultipoleParticlesIdsAndAxisType; int4* multiPoleParticles = cAmoebaSim.pMultipoleParticlesIdsAndAxisType;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment