https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Private Attributes | List of all members
StochasticReporterValue< T > Class Template Reference

#include <StochasticReporter.h>

Inheritance diagram for StochasticReporterValue< T >:
[legend]

Public Member Functions

 StochasticReporterValue (std::vector< T > &value, const Sampler &sampler)
 
virtual void initialize ()
 

Protected Attributes

const Sampler_sampler
 

Private Attributes

std::vector< T > & _value
 

Detailed Description

template<typename T>
class StochasticReporterValue< T >

Definition at line 123 of file StochasticReporter.h.

Constructor & Destructor Documentation

◆ StochasticReporterValue()

template<typename T >
StochasticReporterValue< T >::StochasticReporterValue ( std::vector< T > &  value,
const Sampler sampler 
)
inline

Definition at line 126 of file StochasticReporter.h.

127 : StochasticReporterValueBase(sampler), _value(value)
128 {
129 }
This is a non-typed base class of the stochastic vector value, used to update reporter values during ...

Member Function Documentation

◆ initialize()

template<typename T >
virtual void StochasticReporterValue< T >::initialize ( )
inlinevirtual

Reimplemented from StochasticReporterValueBase.

Definition at line 131 of file StochasticReporter.h.

131{ this->_value.resize(this->_sampler.getNumberOfLocalRows()); }
dof_id_type getNumberOfLocalRows() const

Member Data Documentation

◆ _sampler

const Sampler& StochasticReporterValueBase::_sampler
protectedinherited

Definition at line 119 of file StochasticReporter.h.

Referenced by StochasticReporterValue< T >::initialize().

◆ _value

template<typename T >
std::vector<T>& StochasticReporterValue< T >::_value
private

Definition at line 134 of file StochasticReporter.h.

Referenced by StochasticReporterValue< T >::initialize().


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