seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
domain.hpp File Reference

Spatial domain decomposition of one periodic frame across ranks. More...

#include <cstdint>
#include <vector>
#include <mol_sys.hpp>

Go to the source code of this file.

Classes

struct  seams::domain::Share
 One rank's share of a frame. More...
struct  seams::domain::RingSummary
 What the ring analyses read off a frame's primitive rings. More...
struct  seams::domain::RingPhases

Namespaces

namespace  seams
namespace  seams::domain

Typedefs

using seams::domain::Cloud = molSys::PointCloud<molSys::Point<double>, double>

Functions

RingSummary seams::domain::summarize (const std::vector< std::vector< int > > &ringList, int nAtoms, int maxDepth)
 The summary of ringList over a frame of nAtoms atoms.
std::uint64_t seams::domain::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 seams::domain::ringHaloBonds (int ringSize)
int seams::domain::ringHops (int maxDepth)
int seams::domain::ringRowHops (int maxDepth)
Share seams::domain::decompose (const Cloud &cloud, int rank, int nRanks, double halo)
std::vector< int > seams::domain::haloRanks (const Share &share)
void seams::domain::markSources (const Cloud &cloud, const Share &share, double inner, std::vector< char > &source)
Cloud seams::domain::subCloud (const Cloud &cloud, const std::vector< int > &atoms)
 The listed atoms of cloud, in that order, in the same box.
std::vector< std::vector< int > > seams::domain::rings (const Cloud &cloud, double cutoff, int maxDepth, int rank, int nRanks)
const std::vector< std::vector< int > > & seams::domain::ownedRings (const Cloud &local, double cutoff, int maxDepth, const std::vector< char > &owned)
std::vector< std::vector< int > > seams::domain::ringsFromRows (const std::vector< int > &frame, const std::vector< std::vector< int > > &neigh, const std::vector< int > &sources, int maxDepth)
RingPhases seams::domain::lastRingPhases ()

Variables

constexpr int seams::domain::kRingHaloHalf = 2
constexpr int seams::domain::kWorkNeigh = 1
 Tags for the measured cell weights. Zero keeps the point-count cut.
constexpr int seams::domain::kWorkChill = 2
constexpr int seams::domain::kWorkQ6 = 3
constexpr int seams::domain::kWorkRings = 4

Detailed Description

Spatial domain decomposition of one periodic frame across ranks.

An orthorhombic frame is cut by linkcell's recursive coordinate bisection of the periodic cell grid. The bound is the tightest a cell-aligned cut can promise. The first call of an analysis weights cells by how many points they hold. Later calls of that analysis weight them by the work measured on the first call. A painted cell only contributes a point that lies within the cutoff of an owned atom. The cut whose heaviest rank load plus thickest ghost fraction is smaller is the one that runs. A skewed frame keeps the slab, pencil, or block cut.

Definition in file domain.hpp.