NetDEM v1.0
Loading...
Searching...
No Matches
particle_parser_gpu.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "particle.hpp"
5
6namespace netdem {
7
17public:
27 static void ClassToStruct(const Particle *const p_class,
28 ParticleDataGPU *const p_struct);
29
41 static void StructToClass(Particle *const p_class,
42 const ParticleDataGPU *const p_struct,
43 const std::unordered_map<int, Shape *> &shape_map);
44};
45
46} // namespace netdem
Definition particle.hpp:26
A class for converting between Particle objects and ParticleDataGPU structs.
Definition particle_parser_gpu.hpp:16
static void ClassToStruct(const Particle *const p_class, ParticleDataGPU *const p_struct)
Converts a Particle object to a ParticleDataGPU struct.
Definition particle_parser_gpu.cpp:6
static void StructToClass(Particle *const p_class, const ParticleDataGPU *const p_struct, const std::unordered_map< int, Shape * > &shape_map)
Converts a ParticleDataGPU struct to a Particle object.
Definition particle_parser_gpu.cpp:72
Definition bond_entry.hpp:7
A struct defining the particle data for MPI communication.
Definition particle_data_gpu.hpp:17