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.
Public Types | Public Member Functions | Public Attributes | List of all members
Kratos::SubReduction< TDataType, TReturnType > Class Template Reference

#include <reduction_utilities.h>

Collaboration diagram for Kratos::SubReduction< TDataType, TReturnType >:

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 SubReduction< 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()
 

Member Typedef Documentation

◆ return_type

template<class TDataType , class TReturnType = TDataType>
typedef TReturnType Kratos::SubReduction< TDataType, TReturnType >::return_type

◆ value_type

template<class TDataType , class TReturnType = TDataType>
typedef TDataType Kratos::SubReduction< TDataType, TReturnType >::value_type

Member Function Documentation

◆ GetValue()

template<class TDataType , class TReturnType = TDataType>
TReturnType Kratos::SubReduction< TDataType, TReturnType >::GetValue ( ) const
inline

access to reduced value

◆ LocalReduce()

template<class TDataType , class TReturnType = TDataType>
void Kratos::SubReduction< TDataType, TReturnType >::LocalReduce ( const TDataType  value)
inline

NON-THREADSAFE (fast) value of reduction, to be used within a single thread.

◆ ThreadSafeReduce()

template<class TDataType , class TReturnType = TDataType>
void Kratos::SubReduction< TDataType, TReturnType >::ThreadSafeReduce ( const SubReduction< TDataType, TReturnType > &  rOther)
inline

THREADSAFE (needs some sort of lock guard) reduction, to be used to sync threads.

Member Data Documentation

◆ mValue

template<class TDataType , class TReturnType = TDataType>
TReturnType Kratos::SubReduction< TDataType, TReturnType >::mValue = Internals::NullInitialized<TReturnType>::Get()

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