12#ifndef ARCANE_PARALLEL_IMULTIREDUCE_H
13#define ARCANE_PARALLEL_IMULTIREDUCE_H
17#include "arcane/utils/Array.h"
37class ARCANE_CORE_EXPORT ReduceSumOfRealHelper
41 ReduceSumOfRealHelper(
bool is_strict)
42 : m_reduced_value(0.0)
43 , m_is_strict(is_strict)
Management of multiple reductions.
virtual void setStrict(bool is_strict)=0
Sets the strict mode.
virtual ReduceSumOfRealHelper * getSumOfReal(const String &name)=0
Returns the name manager name. If a name manager name does not exist, it is created....
virtual bool isStrict() const =0
Indicates if strict mode is used.
virtual ~IMultiReduce()
Frees resources.
virtual void execute()=0
Executes the reductions.
Interface of the parallelism manager for a subdomain.
Class managing a reduction of a sum of values.
RealConstArrayView values() const
List of accumulated values.
Real reducedValue() const
Reduced value.
void setReducedValue(Real v)
Positions the reduced value.
void add(Real v)
Adds the value v.
void clear()
Clears the accumulated values.
1D vector of data with reference semantics.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.