Flipped force sign in polar_real, made sure that multipole_real is true for precompute() to be invoked, ubdirect2b() is segfault and needs work
This commit is contained in:
@ -1609,12 +1609,12 @@ __kernel void k_amoeba_polar(const __global numtyp4 *restrict x_,
|
||||
numtyp vyz = (numtyp)0.5 * (zr*frcy+yr*frcz);
|
||||
numtyp vzz = zr * frcz;
|
||||
|
||||
virial[0] += vxx;
|
||||
virial[1] += vyy;
|
||||
virial[2] += vzz;
|
||||
virial[3] += vxy;
|
||||
virial[4] += vxz;
|
||||
virial[5] += vyz;
|
||||
virial[0] -= vxx;
|
||||
virial[1] -= vyy;
|
||||
virial[2] -= vzz;
|
||||
virial[3] -= vxy;
|
||||
virial[4] -= vxz;
|
||||
virial[5] -= vyz;
|
||||
}
|
||||
} // nbor
|
||||
|
||||
|
||||
@ -104,9 +104,9 @@ PairAmoebaGPU::PairAmoebaGPU(LAMMPS *lmp) : PairAmoeba(lmp), gpu_mode(GPU_FORCE)
|
||||
gpu_hal_ready = false; // true for AMOEBA when ready
|
||||
gpu_repulsion_ready = false; // always false for AMOEBA
|
||||
gpu_dispersion_real_ready = false; // always false for AMOEBA
|
||||
gpu_multipole_real_ready = false;
|
||||
gpu_udirect2b_ready = false;
|
||||
gpu_umutual2b_ready = false;
|
||||
gpu_multipole_real_ready = true; // need to be true for precompute()
|
||||
gpu_udirect2b_ready = false; // NEED work
|
||||
gpu_umutual2b_ready = true;
|
||||
gpu_polar_real_ready = true;
|
||||
|
||||
GPU_EXTRA::gpu_ready(lmp->modify, lmp->error);
|
||||
|
||||
Reference in New Issue
Block a user