ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
GpuParticleData.cpp File Reference
#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.
 

Function Documentation

◆ 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
particlesThe particles the forces (and torques) should be added to
forcesThe forces as flat array of size 3 * particles.size()
torquesThe 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()

static void pack_particles ( ParticleRange const &  particles,
GpuParticleData::GpuParticle buffer 
)
static

Definition at line 85 of file GpuParticleData.cpp.

References System::System::box_geo, and System::get_system().