KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
utility function to do a sum reduction More...
#include <reduction_utilities.h>
Public Types | |
typedef TDataType | value_type |
typedef TReturnType | return_type |
Public Member Functions | |
TReturnType | GetValue () const |
access to reduced value More... | |
void | LocalReduce (const TDataType value) |
NON-THREADSAFE (fast) value of reduction, to be used within a single thread. More... | |
void | ThreadSafeReduce (const SumReduction< TDataType, TReturnType > &rOther) |
THREADSAFE (needs some sort of lock guard) reduction, to be used to sync threads. More... | |
Public Attributes | |
TReturnType | mValue = Internals::NullInitialized<TReturnType>::Get() |
utility function to do a sum reduction
typedef TReturnType Kratos::SumReduction< TDataType, TReturnType >::return_type |
typedef TDataType Kratos::SumReduction< TDataType, TReturnType >::value_type |
|
inline |
access to reduced value
|
inline |
NON-THREADSAFE (fast) value of reduction, to be used within a single thread.
|
inline |
THREADSAFE (needs some sort of lock guard) reduction, to be used to sync threads.
TReturnType Kratos::SumReduction< TDataType, TReturnType >::mValue = Internals::NullInitialized<TReturnType>::Get() |