#include "config/config.hpp"
#include "GpuParticleData.hpp"
#include "cell_system/CellStructure.hpp"
#include "communication.hpp"
#include "cuda/CudaHostAllocator.hpp"
#include "system/System.hpp"
#include <utils/Vector.hpp>
#include <utils/mpi/gather_buffer.hpp>
#include <utils/mpi/scatter_buffer.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/is_bitwise_serializable.hpp>
#include <boost/serialization/split_free.hpp>
#include <cstddef>
#include <span>
#include <vector>
Go to the source code of this file.
◆ add_forces_and_torques()
static void add_forces_and_torques |
( |
ParticleRange const & |
particles, |
|
|
std::span< const float > |
forces, |
|
|
std::span< const float > |
torques |
|
) |
| |
|
static |
Add a flat force (and torque) array to a range of particles.
- Parameters
-
particles | The particles the forces (and torques) should be added to |
forces | The forces as flat array of size 3 * particles.size() |
torques | The torques as flat array of size 3 * particles.size(), this is only touched if ROTATION is active. |
Definition at line 132 of file GpuParticleData.cpp.
◆ pack_particles()