Home
last modified time | relevance | path

Searched refs:abs_r (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/sponge/bond/
Dbond_force_with_atom_virial_impl.cu35 float abs_r = norm3df(dr.x, dr.y, dr.z); in BondForceWithAtomVirialKernel() local
36 float r_1 = 1. / abs_r; in BondForceWithAtomVirialKernel()
37 float tempf = (abs_r - r0) * k; in BondForceWithAtomVirialKernel()
48 atomicAdd(&atom_virial[atom_i], abs_r * tempf); in BondForceWithAtomVirialKernel()
Dbond_force_with_atom_energy_and_virial_impl.cu34 float abs_r = norm3df(dr.x, dr.y, dr.z); in BondForceWithAtomEnergyAndVirialKernel() local
35 float r_1 = 1. / abs_r; in BondForceWithAtomEnergyAndVirialKernel()
37 float tempf2 = abs_r - r0; in BondForceWithAtomEnergyAndVirialKernel()
49 atomicAdd(&atom_virial[atom_i], -tempf * abs_r); in BondForceWithAtomEnergyAndVirialKernel()
Dbond_force_with_atom_energy_impl.cu35 float abs_r = norm3df(dr.x, dr.y, dr.z); in BondForceWithAtomEnergyKernel() local
36 float r_1 = 1. / abs_r; in BondForceWithAtomEnergyKernel()
37 float tempf = abs_r - r0; in BondForceWithAtomEnergyKernel()
/third_party/python/Python/
Dpytime.c485 _PyTime_t x, r, abs_r; in _PyTime_Divide() local
488 abs_r = Py_ABS(r); in _PyTime_Divide()
489 if (abs_r > k / 2 || (abs_r == k / 2 && (Py_ABS(x) & 1))) { in _PyTime_Divide()