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;
63 m_cell_structure->bind_system(
m_system.lock());
64 auto const &
params = *m_params;
66 auto const cs_name = get_value<std::string>(
params,
"decomposition_type");
67 auto const cs_type = cs_name_to_type.at(cs_name);
68 initialize(cs_type,
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 {
boost::make_recursive_variant< None, bool, int, std::size_t, double, std::string, ObjectRef, Utils::Vector3b, Utils::Vector3i, Utils::Vector2d, Utils::Vector3d, Utils::Vector4d, std::vector< int >, std::vector< double >, std::vector< boost::recursive_variant_ >, std::unordered_map< int, boost::recursive_variant_ >, std::unordered_map< std::string, boost::recursive_variant_ > >::type Variant
Possible types for parameters.