|
IODA
|
Implementation of the Accumulator interface suitable for any (possibly overlapping) distribution, but potentially less efficient than specialized implementations. More...
#include <GeneralDistributionAccumulator.h>


Public Member Functions | |
| GeneralDistributionAccumulator (const T &, const eckit::mpi::Comm &comm, const std::vector< bool > &patchObs) | |
| void | addTerm (std::size_t loc, const T &term) override |
Increment the sum with the contribution term of location loc held on the current PE. More... | |
| T | computeResult () const override |
| Return the sum of contributions associated with locations held on all PEs (each taken into account only once). More... | |
Public Member Functions inherited from ioda::Accumulator< T > | |
| virtual | ~Accumulator () |
Private Attributes | |
| T | localResult_ |
| const eckit::mpi::Comm & | comm_ |
| const std::vector< bool > & | patchObs_ |
Implementation of the Accumulator interface suitable for any (possibly overlapping) distribution, but potentially less efficient than specialized implementations.
Definition at line 22 of file GeneralDistributionAccumulator.h.
|
inline |
Definition at line 24 of file GeneralDistributionAccumulator.h.
|
inlineoverridevirtual |
Increment the sum with the contribution term of location loc held on the current PE.
Implements ioda::Accumulator< T >.
Definition at line 29 of file GeneralDistributionAccumulator.h.
|
inlineoverridevirtual |
Return the sum of contributions associated with locations held on all PEs (each taken into account only once).
Implements ioda::Accumulator< T >.
Definition at line 34 of file GeneralDistributionAccumulator.h.
|
private |
Definition at line 42 of file GeneralDistributionAccumulator.h.
|
private |
Definition at line 41 of file GeneralDistributionAccumulator.h.
|
private |
Definition at line 43 of file GeneralDistributionAccumulator.h.