33#include "system/System.hpp"
40 if (thermalized_bond) {
41 thermalized_bond->recalc_prefactors(time_step, *(get_system().bonded_ias));
44 langevin->recalc_prefactors(kT, time_step);
47 brownian->recalc_prefactors(kT);
56 npt_iso->recalc_prefactors(kT, get_system().nptiso->piston,
57 get_system().nptiso->mass_list, time_step);
64 langevin->rng_increment();
67 brownian->rng_increment();
71 npt_iso->rng_increment();
79#ifdef ESPRESSO_STOKESIAN_DYNAMICS
81 stokesian->rng_increment();
85 thermalized_bond->rng_increment();
91 if (get_system().lb.is_solver_set() and ::comm_cart.rank() == 0
and
94 <<
"Recalculating forces, so the LB coupling forces are not "
95 "included in the particle force the first time step. This "
96 "only matters if it happens frequently during sampling.";
98 lb->couple_to_md =
false;
104 for (
auto &
handle : std::views::elements<1>(bonded_ias)) {
105 if (
auto *
bond = std::get_if<ThermalizedBond>(
handle.get())) {
106 bond->recalc_prefactors(time_step);
Data structures for bonded interactions.
container for bonded interactions.
std::shared_ptr< InteractionsNonBonded > nonbonded_ias
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.
This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter ...
#define runtimeWarningMsg()
Various procedures concerning interactions between particles.
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.