OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Public Member Functions | List of all members
CoreFitSC::Reducer Class Referenceabstract

#include <CoreFitSC.h>

Inheritance diagram for CoreFitSC::Reducer:
Inheritance graph
[legend]

Public Member Functions

virtual ~Reducer ()=default
 
virtual void sum (double *values, unsigned int count) const =0
 Sums over all ranks.
 
virtual void min (double *values, unsigned int count) const =0
 Minima over all ranks (maxima are the minima of the negated values)
 

Detailed Description

Global reductions in place over all ranks. Every rank must make the same calls with the same counts and must get back the same values, as MPI_Allreduce returns them. The selection takes every decision from reduced values only, so the ranks stay in step.

Definition at line 93 of file CoreFitSC.h.

Constructor & Destructor Documentation

◆ ~Reducer()

virtual CoreFitSC::Reducer::~Reducer ( )
virtualdefault

Member Function Documentation

◆ min()

virtual void CoreFitSC::Reducer::min ( double *  values,
unsigned int  count 
) const
pure virtual

Minima over all ranks (maxima are the minima of the negated values)

Implemented in CoreFitSC::SerialReducer, and CoreFitSC::IpplReducer.

Referenced by CoreFitSC::getMeshBox(), and CoreFitSC::selectCore().

◆ sum()

virtual void CoreFitSC::Reducer::sum ( double *  values,
unsigned int  count 
) const
pure virtual

Sums over all ranks.

Implemented in CoreFitSC::SerialReducer, and CoreFitSC::IpplReducer.

Referenced by CoreFitSC::MomentSums::reduce(), and CoreFitSC::selectCore().


The documentation for this class was generated from the following file: