ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
script_interface/system/System.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013-2022 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "System.hpp"
21
22#include <config/config.hpp>
23
24#include "core/BoxGeometry.hpp"
25#include "core/Particle.hpp"
29#include "core/cells.hpp"
31#include "core/exclusions.hpp"
33#include "core/npt.hpp"
36#include "core/propagation.hpp"
37#include "core/rotation.hpp"
40
61
62#include <utils/Vector.hpp>
63#include <utils/demangle.hpp>
66
67#include <boost/mpi/collectives.hpp>
68
69#include <algorithm>
70#include <array>
71#include <cassert>
72#include <cmath>
73#include <functional>
74#include <initializer_list>
75#include <memory>
76#include <ranges>
77#include <stdexcept>
78#include <string>
79#include <type_traits>
80#include <vector>
81
82namespace ScriptInterface {
83namespace System {
84
85static bool system_created = false;
86
87#ifdef ESPRESSO_EXCLUSIONS
89 Variant const &exclusions) {
90 p.call_method("set_exclusions", {{"p_ids", exclusions}});
91}
92#endif // ESPRESSO_EXCLUSIONS
93
94static void set_bonds(Particles::ParticleHandle &p, Variant const &bonds) {
96 for (auto const &bond_flat : bond_list_flat) {
97 auto const bond_id = bond_flat[0];
98 auto const part_id =
99 std::vector<int>{bond_flat.begin() + 1, bond_flat.end()};
100 p.call_method("add_bond",
101 {{"bond_id", bond_id}, {"part_id", std::move(part_id)}});
102 }
103}
104
105/** @brief Container for leaves of the system class. */
107 Leaves() = default;
108 std::shared_ptr<CellSystem::CellSystem> cell_system;
109 std::shared_ptr<Integrators::IntegratorHandle> integrator;
110 std::shared_ptr<Interactions::BondedInteractions> bonded_interactions;
111#ifdef ESPRESSO_COLLISION_DETECTION
112 std::shared_ptr<CollisionDetection::CollisionDetection> collision_detection;
113#endif
114 std::shared_ptr<Thermostat::Thermostat> thermostat;
115 std::shared_ptr<Analysis::Analysis> analysis;
116 std::shared_ptr<Galilei::ComFixed> comfixed;
117 std::shared_ptr<Galilei::Galilei> galilei;
118 std::shared_ptr<BondBreakage::BreakageSpecs> bond_breakage;
119 std::shared_ptr<LeesEdwards::LeesEdwards> lees_edwards;
120 std::shared_ptr<Accumulators::AutoUpdateAccumulators>
122 std::shared_ptr<Constraints::Constraints> constraints;
123 std::shared_ptr<Interactions::NonBondedInteractions> non_bonded_inter;
124#ifdef ESPRESSO_ELECTROSTATICS
125 std::shared_ptr<Coulomb::Container> electrostatics;
126#endif
127#ifdef ESPRESSO_DIPOLES
128 std::shared_ptr<Dipoles::Container> magnetostatics;
129#endif
130 std::shared_ptr<LB::Container> lb;
131 std::shared_ptr<EK::Container> ek;
132 std::shared_ptr<Particles::ParticleList> part;
133
135 // Clear containers whose elements call MPI callbacks upon destruction.
136 // The containers lifetime is extended by the global context shared object
137 // registry on the head node, which can cause MPI deadlocks if they still
138 // contain elements.
140 bonded_interactions->clear();
141 }
142 if (constraints) {
143 constraints->clear();
144 }
145 }
146};
147
148System::System() : m_instance{}, m_leaves{std::make_unique<Leaves>()} {
149 auto const add_parameter =
150 [this, ptr = m_leaves.get()](std::string key, auto Leaves::*member) {
152 key.c_str(),
153 [this, ptr, member, key](Variant const &val) {
154 auto &dst = ptr->*member;
155 if (dst != nullptr) {
156 throw WriteError(key);
157 }
158 dst = get_value<std::remove_reference_t<decltype(dst)>>(val);
159 dst->bind_system(m_instance);
160 },
161 [ptr, member]() { return ptr->*member; })});
162 };
163
164 add_parameters({
165 {"box_l",
166 [this](Variant const &v) {
167 context()->parallel_try_catch([&]() {
170 throw std::domain_error("Attribute 'box_l' must be > 0");
171 }
172 m_instance->veto_boxl_change();
173 m_instance->box_geo->set_length(new_value);
174 m_instance->on_boxl_change();
175 });
176 },
177 [this]() { return m_instance->box_geo->length(); }},
178 {"periodicity",
179 [this](Variant const &v) {
181 for (unsigned int i = 0u; i < 3u; ++i) {
182 m_instance->box_geo->set_periodic(i, periodicity[i]);
183 }
184 context()->parallel_try_catch(
185 [&]() { m_instance->on_periodicity_change(); });
186 },
187 [this]() {
188 return Utils::Vector3b{m_instance->box_geo->periodic(0),
189 m_instance->box_geo->periodic(1),
190 m_instance->box_geo->periodic(2)};
191 }},
192 {"min_global_cut",
193 [this](Variant const &v) {
194 context()->parallel_try_catch([&]() {
195 auto const new_value = get_value<double>(v);
197 throw std::domain_error("Attribute 'min_global_cut' must be >= 0");
198 }
199 m_instance->set_min_global_cut(new_value);
200 });
201 },
202 [this]() { return m_instance->get_min_global_cut(); }},
203 {"max_oif_objects",
204 [this](Variant const &v) {
205 m_instance->oif_global->max_oif_objects = get_value<int>(v);
206 },
207 [this]() { return m_instance->oif_global->max_oif_objects; }},
208
209 });
210 // note: the order of leaves matters! e.g. bonds depend on thermostats,
211 // and thus a thermostat object must be instantiated before the bonds
212 add_parameter("cell_system", &Leaves::cell_system);
213 add_parameter("integrator", &Leaves::integrator);
214 add_parameter("thermostat", &Leaves::thermostat);
215 add_parameter("analysis", &Leaves::analysis);
216 add_parameter("comfixed", &Leaves::comfixed);
217 add_parameter("galilei", &Leaves::galilei);
218 add_parameter("bonded_inter", &Leaves::bonded_interactions);
219#ifdef ESPRESSO_COLLISION_DETECTION
220 add_parameter("collision_detection", &Leaves::collision_detection);
221#endif
222 add_parameter("bond_breakage", &Leaves::bond_breakage);
223 add_parameter("lees_edwards", &Leaves::lees_edwards);
224 add_parameter("auto_update_accumulators", &Leaves::auto_update_accumulators);
225 add_parameter("constraints", &Leaves::constraints);
226 add_parameter("non_bonded_inter", &Leaves::non_bonded_inter);
227#ifdef ESPRESSO_ELECTROSTATICS
228 add_parameter("electrostatics", &Leaves::electrostatics);
229#endif
230#ifdef ESPRESSO_DIPOLES
231 add_parameter("magnetostatics", &Leaves::magnetostatics);
232#endif
233 add_parameter("lbcontainer", &Leaves::lb);
234 add_parameters({
235 {"ekcontainer",
236 [this](Variant const &v) {
237 if (is_none(v)) {
238 m_leaves->ek->do_call_method("deactivate", {});
239 if (not context()->is_head_node()) {
240 return;
241 }
242 set_parameter("ekcontainer",
243 context()->make_shared("EK::Container", {}));
244 } else {
245 auto const detach_solver = [this]() {
246 auto &solver = m_leaves->ek;
247 if (solver) {
248 solver->do_call_method("deactivate", {});
249 solver->detach_system();
250 }
251 solver.reset();
252 };
253 auto const bind_solver = [this]() {
254 auto &solver = m_leaves->ek;
255 if (solver) {
256 solver->bind_system(m_instance);
257 solver->do_call_method("activate", {});
258 }
259 };
260 auto &solver = m_leaves->ek;
262 auto old_solver = solver;
263 detach_solver();
264 try {
265 solver = new_solver;
266 context()->parallel_try_catch([&]() { bind_solver(); });
267 } catch (...) {
268 detach_solver();
269 solver = old_solver;
270 bind_solver();
271 throw;
272 }
273 }
274 },
275 [this]() { return m_leaves->ek; }},
276 });
277 add_parameter("part", &Leaves::part);
278}
279
280template <typename LeafType>
281void System::do_set_default_parameter(std::string const &name) {
282 assert(context()->is_head_node());
283 auto const so_name = Utils::demangle<LeafType>().substr(17);
284 set_parameter(name, Variant{context()->make_shared(so_name, {})});
285}
286
287void System::do_construct(VariantMap const &params) {
288 /* When reloading the system state from a checkpoint file,
289 * the order of global variables instantiation matters.
290 * The @c box_l must be set before any other global variable.
291 * All these globals re-initialize the cell system, and we
292 * cannot use the default-constructed @c box_geo when e.g.
293 * long-range interactions exist in the system, otherwise
294 * runtime errors about the local geometry being smaller
295 * than the interaction range would be raised.
296 */
297 context()->parallel_try_catch([&]() {
298 if (not params.contains("box_l")) {
299 throw std::domain_error("Required argument 'box_l' not provided.");
300 }
301 if (params.contains("_regular_constructor") and system_created) {
302 throw std::runtime_error(
303 "You can only have one instance of the system class at a time");
304 }
305 });
306 m_instance = ::System::System::create();
307 ::System::set_system(m_instance);
308
309 // domain decomposition can only be set after box_l is set
310 m_instance->set_cell_structure_topology(CellStructureType::NSQUARE);
311 do_set_parameter("box_l", params.at("box_l"));
312 m_instance->set_cell_structure_topology(CellStructureType::REGULAR);
313
314 m_instance->lb.bind_system(m_instance);
315 m_instance->ek.bind_system(m_instance);
316
317 if (params.contains("_regular_constructor")) {
318 std::set<std::string> const setable_properties = {
319 "box_l", "min_global_cut",
320 "periodicity", "time",
321 "time_step", "force_cap",
322 "max_oif_objects", "_regular_constructor"};
323 for (auto const &name : std::views::elements<0>(params)) {
324 if (not setable_properties.contains(name)) {
325 context()->parallel_try_catch([&name]() {
326 throw std::domain_error(
327 "Property '" + name +
328 "' cannot be set via argument to System class");
329 });
330 }
331 }
332 for (std::string attr :
333 {"min_global_cut", "periodicity", "max_oif_objects"}) {
334 if (params.contains(attr)) {
335 do_set_parameter(attr, params.at(attr));
336 }
337 }
338 if (not context()->is_head_node()) {
339 return;
340 }
341 auto integrator = std::dynamic_pointer_cast<Integrators::IntegratorHandle>(
342 context()->make_shared("Integrators::IntegratorHandle", {}));
343 set_parameter("integrator", integrator);
344 for (std::string attr : {"time", "time_step", "force_cap"}) {
345 if (params.contains(attr)) {
346 integrator->set_parameter(attr, params.at(attr));
347 }
348 }
349 // note: the order of leaves matters! e.g. bonds depend on thermostats,
350 // and thus a thermostat object must be instantiated before the bonds
354#ifdef ESPRESSO_COLLISION_DETECTION
356 "collision_detection");
357#endif
364 "auto_update_accumulators");
367 "non_bonded_inter");
368#ifdef ESPRESSO_ELECTROSTATICS
370#endif
371#ifdef ESPRESSO_DIPOLES
373#endif
377 } else {
378 for (auto const &key : get_parameter_insertion_order()) {
379 if (key != "box_l" and params.contains(key)) {
380 do_set_parameter(key, params.at(key));
381 }
382 }
383 }
384 if (not context()->is_head_node()) {
385 return;
386 }
387 call_method("internal_attach_leaves", {});
388}
389
390static void rotate_system(CellStructure &cell_structure, double phi,
391 double theta, double alpha) {
392 auto const particles = cell_structure.local_particles();
393
394 // Calculate center of mass
396 double local_mass = 0.0;
397
398 for (auto const &p : particles) {
399 if (not p.is_virtual()) {
400 local_com += p.mass() * p.pos();
401 local_mass += p.mass();
402 }
403 }
404
405 auto const total_mass =
406 boost::mpi::all_reduce(comm_cart, local_mass, std::plus<>());
407 auto const com =
408 boost::mpi::all_reduce(comm_cart, local_com, std::plus<>()) / total_mass;
409
410 // Rotation axis in Cartesian coordinates
411 Utils::Vector3d axis;
412 axis[0] = std::sin(theta) * std::cos(phi);
413 axis[1] = std::sin(theta) * std::sin(phi);
414 axis[2] = std::cos(theta);
415
416 // Rotate particle coordinates
417 for (auto &p : particles) {
418 // Move the center of mass of the system to the origin
419 p.pos() = com + Utils::vec_rotate(axis, alpha, p.pos() - com);
420#ifdef ESPRESSO_ROTATION
421 local_rotate_particle(p, axis, alpha);
422#endif
423 }
424
428}
429
430/** Rescale all particle positions in direction @p dir by a factor @p scale.
431 * @param cell_structure cell structure
432 * @param dir direction to scale (0/1/2 = x/y/z, 3 = x+y+z isotropically)
433 * @param scale factor by which to rescale (>1: stretch, <1: contract)
434 */
435static void rescale_particles(CellStructure &cell_structure, int dir,
436 double scale) {
437 for (auto &p : cell_structure.local_particles()) {
438 if (dir < 3)
439 p.pos()[dir] *= scale;
440 else {
441 p.pos() *= scale;
442 }
443 }
444}
445
446Variant System::do_call_method(std::string const &name,
447 VariantMap const &parameters) {
448 if (name == "lock_system_creation") {
449 system_created = true;
450 return {};
451 }
452 if (name == "rescale_boxl") {
453 auto &box_geo = *m_instance->box_geo;
454 auto const coord = get_value<int>(parameters, "coord");
455 auto const length = get_value<double>(parameters, "length");
456 assert(coord >= 0);
457 assert(coord != 3 or ((box_geo.length()[0] == box_geo.length()[1]) and
458 (box_geo.length()[1] == box_geo.length()[2])));
459 auto const scale = (coord == 3) ? length * box_geo.length_inv()[0]
460 : length * box_geo.length_inv()[coord];
461 context()->parallel_try_catch([&]() {
462 if (length <= 0.) {
463 throw std::domain_error("Parameter 'd_new' must be > 0");
464 }
465 m_instance->veto_boxl_change(true);
466 });
467 auto new_value = Utils::Vector3d{};
468 if (coord == 3) {
470 } else {
471 new_value = box_geo.length();
472 new_value[static_cast<unsigned>(coord)] = length;
473 }
474 // when shrinking, rescale the particles first
475 if (scale <= 1.) {
476 rescale_particles(*m_instance->cell_structure, coord, scale);
477 m_instance->on_particle_change();
478 }
479 m_instance->box_geo->set_length(new_value);
480 m_instance->on_boxl_change();
481 if (scale > 1.) {
482 rescale_particles(*m_instance->cell_structure, coord, scale);
483 m_instance->on_particle_change();
484 }
485 return {};
486 }
487 if (name == "setup_type_map") {
488 auto const types = get_value<std::vector<int>>(parameters, "type_list");
489 for (auto const type : types) {
490 ::init_type_map(type);
491 }
492 return {};
493 }
494 if (name == "number_of_particles") {
495 auto const type = get_value<int>(parameters, "type");
496 return ::number_of_particles_with_type(type);
497 }
498 if (name == "velocity_difference") {
499 auto const pos1 = get_value<Utils::Vector3d>(parameters, "pos1");
500 auto const pos2 = get_value<Utils::Vector3d>(parameters, "pos2");
501 auto const v1 = get_value<Utils::Vector3d>(parameters, "v1");
502 auto const v2 = get_value<Utils::Vector3d>(parameters, "v2");
503 return m_instance->box_geo->velocity_difference(pos2, pos1, v2, v1);
504 }
505 if (name == "distance_vec") {
506 auto const pos1 = get_value<Utils::Vector3d>(parameters, "pos1");
507 auto const pos2 = get_value<Utils::Vector3d>(parameters, "pos2");
508 return m_instance->box_geo->get_mi_vector(pos2, pos1);
509 }
510 if (name == "rotate_system") {
511 rotate_system(*m_instance->cell_structure,
514 get_value<double>(parameters, "alpha"));
515 m_instance->on_particle_change();
516 m_instance->update_dependent_particles();
517 return {};
518 }
519 if (name == "get_propagation_modes_enum") {
521 }
522 if (name == "session_shutdown") {
523 if (m_instance) {
524 if (&::System::get_system() == m_instance.get()) {
526 }
527 assert(m_instance.use_count() == 1l);
528 m_leaves.reset();
529 m_instance.reset();
530 }
531 return {};
532 }
533 if (name == "internal_attach_leaves") {
534 m_leaves->part->attach(m_leaves->cell_system,
535 m_leaves->bonded_interactions);
536#ifdef ESPRESSO_COLLISION_DETECTION
537 m_leaves->collision_detection->attach(m_leaves->bonded_interactions);
538#endif
539 return {};
540 }
541 return {};
542}
543
544/**
545 * @brief Serialize particles.
546 * Particles need to be serialized here to reduce overhead,
547 * and also to guarantee particles get instantiated after the cell structure
548 * was instantiated (since they store a weak pointer to it).
549 */
550std::string System::get_internal_state() const {
551 auto const p_ids = get_particle_ids();
552 std::vector<std::string> object_states(p_ids.size());
553
554 std::ranges::transform(p_ids, object_states.begin(), [this](auto const p_id) {
555 auto p_obj = context()->make_shared(
556 "Particles::ParticleHandle",
557 {{"id", p_id}, {"__cell_structure", m_leaves->cell_system}});
558 auto &p_handle = dynamic_cast<Particles::ParticleHandle &>(*p_obj);
559 auto const packed_state = p_handle.serialize();
560 // custom particle serialization
561 auto state = Utils::unpack<ObjectState>(packed_state);
562 state.name = "Particles::ParticleHandle";
563 auto const bonds_view = p_handle.call_method("get_bonds_view", {});
564 state.params.emplace_back(std::string{"bonds"}, pack(bonds_view));
565#ifdef ESPRESSO_EXCLUSIONS
566 auto const exclusions = p_handle.call_method("get_exclusions", {});
567 state.params.emplace_back(std::string{"exclusions"}, pack(exclusions));
568#endif // ESPRESSO_EXCLUSIONS
569 state.params.emplace_back(std::string{"__cpt_sentinel"}, pack(None{}));
570 return Utils::pack(state);
571 });
572
574}
575
576void System::set_internal_state(std::string const &state) {
577 auto const object_states = Utils::unpack<std::vector<std::string>>(state);
578#ifdef ESPRESSO_EXCLUSIONS
579 std::unordered_map<int, Variant> exclusions = {};
580#endif // ESPRESSO_EXCLUSIONS
581 std::unordered_map<int, Variant> bonds = {};
582
583 for (auto const &packed_object : object_states) {
584 auto state = Utils::unpack<ObjectState>(packed_object);
585 VariantMap params = {};
586 for (auto const &[name, packed_value] : state.params) {
587 params[name] = unpack(packed_value, {});
588 }
589 auto const p_id = get_value<int>(params.at("id"));
590 bonds[p_id] = params.extract("bonds").mapped();
591#ifdef ESPRESSO_EXCLUSIONS
592 exclusions[p_id] = params.extract("exclusions").mapped();
593#endif // ESPRESSO_EXCLUSIONS
594 params["__cell_structure"] = get_parameter("cell_system");
595 context()->make_shared("Particles::ParticleHandle", params);
596 }
597
598 for (auto const p_id : get_particle_ids()) {
599 auto p_obj = context()->make_shared(
600 "Particles::ParticleHandle",
601 {{"id", p_id}, {"__cell_structure", m_leaves->cell_system}});
602 auto &p_handle = dynamic_cast<Particles::ParticleHandle &>(*p_obj);
603 set_bonds(p_handle, bonds[p_id]);
604#ifdef ESPRESSO_EXCLUSIONS
605 set_exclusions(p_handle, exclusions[p_id]);
606#endif // ESPRESSO_EXCLUSIONS
607 }
608}
609
610} // namespace System
611} // namespace ScriptInterface
@ NSQUARE
Atom decomposition (N-square).
@ REGULAR
Regular decomposition.
static int coord(std::string const &s)
Vector implementation and trait types for boost qvm interoperability.
This file contains everything related to the global cell structure / cell system.
Describes a cell structure / cell system.
void update_ghosts_and_resort_particle(unsigned data_parts)
Update ghost particles, with particle resort if needed.
void set_resort_particles(Cells::Resort level)
Increase the local resort level at least to level.
ParticleRange local_particles() const
void add_parameters(std::vector< AutoParameter > &&params)
Type to indicate no value in Variant.
Definition None.hpp:32
std::string serialize() const
Variant call_method(const std::string &name, const VariantMap &params)
Call a method on the object.
static std::shared_ptr< System > create()
static DEVICE_QUALIFIER constexpr Vector< T, N > broadcast(typename Base::value_type const &value) noexcept
Create a vector that has all entries set to the same value.
Definition Vector.hpp:132
boost::mpi::communicator comm_cart
The communicator.
constexpr double inactive_cutoff
Special cutoff value for an inactive interaction.
Definition config.hpp:53
This file contains the asynchronous MPI communication.
@ DATA_PART_PROPERTIES
Particle::p.
@ DATA_PART_POSITION
Particle::r.
static void set_bonds(Particles::ParticleHandle &p, Variant const &bonds)
static void set_exclusions(Particles::ParticleHandle &p, Variant const &exclusions)
static void rotate_system(CellStructure &cell_structure, double phi, double theta, double alpha)
static void rescale_particles(CellStructure &cell_structure, int dir, double scale)
Rescale all particle positions in direction dir by a factor scale.
constexpr bool is_none(Variant const &v)
Definition Variant.hpp:163
PackedVariant pack(const Variant &v)
Transform a Variant to a PackedVariant.
T get_value(Variant const &v)
Extract value of specific type T from a Variant.
std::unordered_map< std::string, Variant > VariantMap
Definition Variant.hpp:133
auto make_unordered_map_of_variants(std::unordered_map< K, V > const &v)
Definition Variant.hpp:144
Variant unpack(const PackedVariant &v, std::unordered_map< ObjectId, ObjectRef > const &objects)
Unpack a PackedVariant.
make_recursive_variant< ObjectRef > Variant
Possible types for parameters.
Definition Variant.hpp:131
System & get_system()
void set_system(std::shared_ptr< System > new_instance)
Vector3d vec_rotate(const Vector3d &axis, double angle, const Vector3d &vector)
Rotate a vector around an axis.
std::string pack(T const &v)
Pack a serialize type into a string.
Definition pack.hpp:38
STL namespace.
Various procedures concerning interactions between particles.
Exports for the NpT code.
Routines to calculate the OIF global forces for a particle triple (triangle from mesh).
void init_type_map(int type)
std::vector< int > get_particle_ids()
Get all particle ids.
Particles creation and deletion.
std::unordered_map< std::string, int > propagation_flags_map()
Convert PropagationMode::PropagationMode to name/value pairs.
This file contains all subroutines required to process rotational motion.
void local_rotate_particle(Particle &p, const Utils::Vector3d &axis_space_frame, const double phi)
Rotate the particle p around the NORMALIZED axis aSpaceFrame by amount phi.
Definition rotation.hpp:134
Description and getter/setter for a parameter.
Container for leaves of the system class.
std::shared_ptr< Thermostat::Thermostat > thermostat
std::shared_ptr< Integrators::IntegratorHandle > integrator
std::shared_ptr< Dipoles::Container > magnetostatics
std::shared_ptr< CellSystem::CellSystem > cell_system
std::shared_ptr< Particles::ParticleList > part
std::shared_ptr< BondBreakage::BreakageSpecs > bond_breakage
std::shared_ptr< Constraints::Constraints > constraints
std::shared_ptr< Interactions::BondedInteractions > bonded_interactions
std::shared_ptr< CollisionDetection::CollisionDetection > collision_detection
std::shared_ptr< Interactions::NonBondedInteractions > non_bonded_inter
std::shared_ptr< Coulomb::Container > electrostatics
std::shared_ptr< Accumulators::AutoUpdateAccumulators > auto_update_accumulators
std::shared_ptr< LeesEdwards::LeesEdwards > lees_edwards
Recursive variant implementation.
Definition Variant.hpp:84