1#ifndef SEAMS_DOMAIN_HPP_
2#define SEAMS_DOMAIN_HPP_
49 int nAtoms,
int maxDepth);
52std::uint64_t
hilbertKey(std::uint32_t x, std::uint32_t y, std::uint32_t z,
97 std::vector<char> &source);
106std::vector<std::vector<int>>
rings(
const Cloud &cloud,
double cutoff,
107 int maxDepth,
int rank,
int nRanks);
113 const std::vector<char> &owned);
120std::vector<std::vector<int>>
122 const std::vector<std::vector<int>> &neigh,
123 const std::vector<int> &sources,
int maxDepth);
131 double haloFraction = 0;
140Work &gatherWork(
const Cloud &cloud,
double halo, MPI_Comm comm,
int workTag = 0);
145void captureLocalWork(
int workTag,
const double *perLocal,
int nLocal, MPI_Comm comm);
149void setCutMode(
int mode);
154void setHaloHook(
void (*fn)(
void *),
void *ctx);
158void markInterior(
const Work &work,
double cutoff, std::vector<char> &interior);
168std::vector<std::vector<int>> gatherRings(
const Cloud &cloud,
double cutoff,
169 int maxDepth, MPI_Comm comm);
178RingSummary reduceRings(
const Cloud &cloud,
double cutoff,
int maxDepth,
179 MPI_Comm comm,
int root = 0);
185const std::vector<std::vector<int>> &distributedRings(
const Cloud &cloud,
double cutoff,
186 int maxDepth, MPI_Comm comm);
193void postBoundaryValues(
double *values,
int stride, MPI_Comm comm);
194void waitBoundaryValues();
197double takeValueCommMs();
The main molecular system handler.
const std::vector< std::vector< int > > & ownedRings(const Cloud &local, double cutoff, int maxDepth, const std::vector< char > &owned)
RingSummary summarize(const std::vector< std::vector< int > > &ringList, int nAtoms, int maxDepth)
The summary of ringList over a frame of nAtoms atoms.
int ringHaloBonds(int ringSize)
Cloud subCloud(const Cloud &cloud, const std::vector< int > &atoms)
The listed atoms of cloud, in that order, in the same box.
RingPhases lastRingPhases()
std::vector< std::vector< int > > ringsFromRows(const std::vector< int > &frame, const std::vector< std::vector< int > > &neigh, const std::vector< int > &sources, int maxDepth)
constexpr int kRingHaloHalf
int ringHops(int maxDepth)
constexpr int kWorkNeigh
Tags for the measured cell weights. Zero keeps the point-count cut.
Share decompose(const Cloud &cloud, int rank, int nRanks, double halo)
std::vector< int > haloRanks(const Share &share)
molSys::PointCloud< molSys::Point< double >, double > Cloud
std::vector< std::vector< int > > rings(const Cloud &cloud, double cutoff, int maxDepth, int rank, int nRanks)
void markSources(const Cloud &cloud, const Share &share, double inner, std::vector< char > &source)
std::uint64_t hilbertKey(std::uint32_t x, std::uint32_t y, std::uint32_t z, int bits)
Position of cell (x, y, z) along the Hilbert curve over a 2^bits grid.
int ringRowHops(int maxDepth)
This contains a collection of points; contains information for a particular frame.
What the ring analyses read off a frame's primitive rings.
std::vector< long long > sizeCount
Rings of each size, indexed by member count, 0 through maxDepth.
std::vector< int > atomType
One rank's share of a frame.
std::vector< char > owned
nonzero where local[k] belongs to this rank
std::vector< int > owner
rank owning local[k]
std::vector< int > local
owned and halo atoms by frame index, ascending