34#include <unordered_map>
46 std::unordered_map<CellStructureType, std::string>
const cs_type_to_name = {
52 std::unordered_map<std::string, CellStructureType>
const cs_name_to_type = {
58 std::shared_ptr<::CellStructure> m_cell_structure;
59 std::unique_ptr<VariantMap> m_params;
62 m_cell_structure =
system.cell_structure;
63 m_cell_structure->bind_system(
m_system.lock());
64 auto const &
params = *m_params;
79 m_params = std::make_unique<VariantMap>(
params);
100 std::vector<int> mpi_resort_particles(
bool global_flag)
const;
104 auto const &get_regular_decomposition()
const {
109 auto const &get_hybrid_decomposition()
const {
CellStructureType
Cell structure topology.
@ NSQUARE
Atom decomposition (N-square).
@ HYBRID
Hybrid decomposition.
@ REGULAR
Regular decomposition.
Hybrid decomposition cell system.
Bind parameters in the script interface.
void do_set_parameter(const std::string &name, const Variant &value) final
void on_bind_system(::System::System &system) override
Variant do_call_method(std::string const &name, VariantMap const ¶ms) override
auto & get_cell_structure() const
void configure(Particles::ParticleHandle &)
void do_construct(VariantMap const ¶ms) override
std::string_view name() const
std::weak_ptr<::System::System > m_system
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.
Regular decomposition cell system.
Recursive variant implementation.