8 #include "ioda/distribution/RoundRobin.h"
12 #include "eckit/mpi/Comm.h"
13 #include "ioda/distribution/DistributionFactory.h"
14 #include "oops/util/Logger.h"
28 const eckit::Configuration & config)
30 oops::Log::trace() <<
"RoundRobin constructed" << std::endl;
35 oops::Log::trace() <<
"RoundRobin destructed" << std::endl;
57 return (RecNum %
comm_.size() ==
comm_.rank());
const eckit::mpi::Comm & comm_
Local MPI communicator.
A class able to instantiate objects of type T, which should be a subclass of Distribution.
Implements some methods of Distribution in a manner suitable for distributions storing each observati...
std::string name() const override
bool isMyRecord(std::size_t RecNum) const override
Round-robin selector.
RoundRobin(const eckit::mpi::Comm &Comm, const eckit::Configuration &config)
static DistributionMaker< AtlasDistribution > maker(DIST_NAME)