53 9ul,
static_cast<std::size_t
>(bonded_ias->get_next_key()),
54 nonbonded_ias->get_max_seen_particle_type());
56 if (long_range_interactions_sanity_checks()) {
64 auto const volume = box_geo->volume();
73 [](
auto &a,
auto const &b) { a += b; });
80 cell_structure->get_verlet_skin(),
81 get_interaction_range(),
86 get_interaction_range(), propagation->integ_switch);
89 static_cast<std::size_t
>(bonded_ias->get_next_key()),
90 std::size_t(nonbonded_ias->get_max_seen_particle_type() + 1)};
92 using exec = Kokkos::DefaultExecutionSpace;
93 Kokkos::View<double **, Kokkos::LayoutRight> local_pressure(
96 auto const &unique_particles = cell_structure->get_unique_particles();
97 auto const n_particles =
static_cast<int>(unique_particles.size());
98 Kokkos::View<int *> mol_id_view(
"mol_id", n_particles);
99 auto mol_id_host = Kokkos::create_mirror_view(mol_id_view);
100 for (
int i = 0; i < n_particles; ++i)
110 cell_structure->get_unique_particles(),
113 cell_structure->get_aosoa(),
118 auto &
bs = cell_structure->bond_state();
120 layout, cell_structure->get_aosoa()};
131 propagation->integ_switch);
134 nonbonded_ias->get_max_seen_particle_type() + 1);
136#ifdef ESPRESSO_ELECTROSTATICS
141#ifdef ESPRESSO_DIPOLES
143 dipoles.calc_pressure_long_range();
146#ifdef ESPRESSO_VIRTUAL_SITES_RELATIVE
static void reduce_cabana_pressure(Kokkos::View< double **, Kokkos::LayoutRight > const &local_pressure, PressureBinLayout const &layout, Observable_stat &obs, BondedInteractionsMap const &bonded_ias, int n_types)
void cabana_short_range(auto const &pair_bonds_kernel, auto const &angle_bonds_kernel, auto const &dihedral_bonds_kernel, auto const &nonbonded_kernel, CellStructure &cell_structure, double pair_cutoff, double bond_cutoff, auto const &verlet_criterion, auto const integ_switch)
Struct holding all information for one particle.