33#include "system/System.hpp"
41 if (thermalized_bond) {
42 thermalized_bond->recalc_prefactors(time_step, *(get_system().bonded_ias));
45 langevin->recalc_prefactors(kT, time_step);
48 brownian->recalc_prefactors(kT);
57 npt_iso->recalc_prefactors(kT, get_system().nptiso->piston,
58 get_system().nptiso->mass_list, time_step);
65 langevin->rng_increment();
68 brownian->rng_increment();
72 npt_iso->rng_increment();
80#ifdef ESPRESSO_STOKESIAN_DYNAMICS
82 stokesian->rng_increment();
86 thermalized_bond->rng_increment();
92 if (get_system().lb.is_solver_set() and ::comm_cart.rank() == 0
and
95 <<
"Recalculating forces, so the LB coupling forces are not "
96 "included in the particle force the first time step. This "
97 "only matters if it happens frequently during sampling.";
99 lb->couple_to_md =
false;
105 for (
auto &
handle : std::views::elements<1>(bonded_ias)) {
106 if (
auto *
bond = std::get_if<ThermalizedBond>(
handle.get())) {
107 bond->recalc_prefactors(time_step);
Data structures for bonded interactions.
container for bonded interactions.
void philox_counter_increment()
Increment RNG counters.
void lb_coupling_deactivate()
void recalc_prefactors(double time_step)
Initialize constants of all thermostats.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
void dpd_init(double kT, double time_step)
Routines to use DPD as thermostat or pair force .
This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter ...
#define runtimeWarningMsg()
Exports for the NpT code.
void recalc_prefactors(double time_step, BondedInteractionsMap &bonded_ias)
Routines to thermalize the center of mass and distance of a particle pair.