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

Fix to chirla check kernel

parent b089a3a1
......@@ -1665,11 +1665,6 @@ void gpuSetAmoebaMultipoleParameters(amoebaGpuContext amoebaGpu, const std::vect
// for z-only need to add access to random numbers
// and need test system
if( axisType[ii] == 4 ){
//fprintf( stderr, "Axis type z-only (atom=%d) not fully implemented -- aborting.\n", ii );
fprintf( stderr, "Warning: Axis type z-only (atom=%d) not fully implemented.\n", ii );
// exit(0);
}
int axisParticleIndex = multipoleParticleZ[ii];
if( maxIndices[axisParticleIndex] < ii ){
maxIndices[axisParticleIndex] = ii;
......
......@@ -85,6 +85,7 @@ void kCudaComputeCheckChiral_kernel( void )
// ---------------------------------------------------------------------------------------
int atomIndex = blockIdx.x;
if( atomIndex >= cSim.atoms )return;
int axisType = multiPoleAtoms[atomIndex].w;
......@@ -108,7 +109,7 @@ void kCudaComputeCheckChiral_kernel( void )
// skip z-then-x
if( axisType == 0 )return;
if( axisType == 0 || multiPoleAtoms[atomIndex].y < 0 )return;
// ---------------------------------------------------------------------------------------
......
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