![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#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>
Include dependency graph for GpuParticleData.cpp:Go to the source code of this file.
Namespaces | |
| namespace | boost |
| namespace | boost::serialization |
Functions | |
| template<typename Archive > | |
| void | boost::serialization::load (Archive &ar, GpuParticleData::GpuParticle &p, unsigned const) |
| template<typename Archive > | |
| void | boost::serialization::save (Archive &ar, GpuParticleData::GpuParticle const &p, unsigned const) |
| static void | pack_particles (ParticleRange const &particles, GpuParticleData::GpuParticle *buffer) |
| static void | add_forces_and_torques (ParticleRange const &particles, std::span< const float > forces, std::span< const float > torques) |
| Add a flat force (and torque) array to a range of particles. | |
| static void | add_dip_fld (ParticleRange const &particles, std::span< const float > dip_fld) |
|
static |
Definition at line 147 of file GpuParticleData.cpp.
References stream.
|
static |
Add a flat force (and torque) array to a range of particles.
| 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.
References stream.
|
static |
Definition at line 85 of file GpuParticleData.cpp.
References System::System::box_geo, System::get_system(), and stream.