45 [&]() {
get_system().set_time_step(get_value<double>(v)); });
47 [
this]() {
return get_system().get_time_step(); }},
50 get_system().set_sim_time(get_value<double>(v));
52 [
this]() {
return get_system().get_sim_time(); }},
55 get_system().set_force_cap(get_value<double>(v));
57 [
this]() {
return get_system().get_force_cap(); }},
60 auto const old_instance = m_instance;
61 m_instance = get_value<std::shared_ptr<Integrator>>(v);
63 old_instance->deactivate();
65 m_instance->bind_system(
m_system.lock());
66 m_instance->activate();
69 switch (
get_system().propagation->integ_switch) {
72 std::dynamic_pointer_cast<SteepestDescent>(m_instance)};
76 std::dynamic_pointer_cast<VelocityVerletIsoNPT>(m_instance)};
80 std::dynamic_pointer_cast<BrownianDynamics>(m_instance)};
81#ifdef STOKESIAN_DYNAMICS
84 std::dynamic_pointer_cast<StokesianDynamics>(m_instance)};
87 auto ptr = std::dynamic_pointer_cast<VelocityVerlet>(m_instance);
virtual void parallel_try_catch(std::function< void()> const &cb) const =0
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.