34 DoubleCounter() =
default;
35 KOKKOS_INLINE_FUNCTION
36 DoubleCounter(
idx_t newAtoms,
idx_t newMolecules) : atoms(newAtoms), molecules(newMolecules) {}
37 DoubleCounter(
const DoubleCounter& rhs) =
default;
39 KOKKOS_INLINE_FUNCTION
40 void operator=(
const DoubleCounter& rhs)
43 molecules = rhs.molecules;
46 KOKKOS_INLINE_FUNCTION
47 DoubleCounter& operator+=(
const DoubleCounter& rhs)
50 molecules += rhs.molecules;
56DoubleCounter operator+(
const DoubleCounter& lhs,
const DoubleCounter& rhs)
58 return DoubleCounter(lhs.atoms + rhs.atoms, lhs.molecules + rhs.molecules);
64class MultiResPeriodicGhostExchange
71 POSITIVE_MOLECULE_IDX = 0,
72 POSITIVE_NUM_ATOMS = 1,
73 NEGATIVE_MOLECULE_IDX = 2,
74 NEGATIVE_NUM_ATOMS = 3
80 Kokkos::View<idx_t* [4]> communicationInfo_;
86 POSITIVE_MOLECULES = 0,
88 NEGATIVE_MOLECULES = 2,
93 Kokkos::View<idx_t[4]> numberOfCommunicationItems_;
99 IndexView moleculesCorrespondingRealMolecule_;
104 const data::Subdomain& subdomain,
109 const data::Subdomain& subdomain);
111 void resetCorrespondingRealAtoms(
data::Atoms& atoms);
114 explicit MultiResPeriodicGhostExchange(
const idx_t& initialSize = 0);
Everything related to ghost particles and periodic boundary conditions.
DeviceMolecules Molecules
Definition Molecules.hpp:176
DeviceAtoms Atoms
Definition Atoms.hpp:177
Top-level namespace of MRMD.
Kokkos::View< idx_t * > IndexView
Definition datatypes.hpp:153
int64_t idx_t
Definition datatypes.hpp:91
AXIS
Definition datatypes.hpp:141