xnn.ffnn.models.amoeba_kernels.gather_field#
- xnn.ffnn.models.amoeba_kernels.gather_field(grid, jac, w, start, batch, mesh, acc, d, coef, guard=None)[source]#
acc += coef d - grad(potential)in place: the mesh part of the field of the dipolesd(acc(N, 3)holds their real-space field) with the self-field coefficientcoef; with the scalarsguardof a conjugate-gradient iterationaccis left alone once the solve has converged.