Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
DRO::VariableEffectiveSparsityThreshold Class Reference

#include <datareductionoperator.h>

Inheritance diagram for DRO::VariableEffectiveSparsityThreshold:
Collaboration diagram for DRO::VariableEffectiveSparsityThreshold:

Public Member Functions

 VariableEffectiveSparsityThreshold (cuint popID)
virtual ~VariableEffectiveSparsityThreshold ()
virtual bool getDataVectorInfo (std::string &dataType, unsigned int &dataSize, unsigned int &vectorSize) const
virtual std::string getName () const
virtual bool reduceData (const SpatialCell *cell, char *buffer)
virtual bool reduceDiagnostic (const spatial_cell::SpatialCell *cell, Real *result)
virtual bool setSpatialCell (const SpatialCell *cell)
Public Member Functions inherited from DRO::DataReductionOperator
 DataReductionOperator ()
virtual ~DataReductionOperator ()
virtual bool getUnitMetadata (std::string &_unit, std::string &_unitLaTeX, std::string &_variableLaTeX, std::string &_unitConversion)
virtual bool setUnitMetadata (std::string &_unit, std::string &_unitLaTeX, std::string &_variableLaTeX, std::string &_unitConversion)

Protected Attributes

uint popID
std::string popName
Protected Attributes inherited from DRO::DataReductionOperator
std::string unit
std::string unitLaTeX
std::string variableLaTeX
std::string unitConversion

Detailed Description

Definition at line 540 of file datareductionoperator.h.

Constructor & Destructor Documentation

◆ VariableEffectiveSparsityThreshold()

DRO::VariableEffectiveSparsityThreshold::VariableEffectiveSparsityThreshold ( cuint popID)

Definition at line 1341 of file datareductionoperator.cpp.

Here is the call graph for this function:

◆ ~VariableEffectiveSparsityThreshold()

DRO::VariableEffectiveSparsityThreshold::~VariableEffectiveSparsityThreshold ( )
virtual

Definition at line 1344 of file datareductionoperator.cpp.

Member Function Documentation

◆ getDataVectorInfo()

bool DRO::VariableEffectiveSparsityThreshold::getDataVectorInfo ( std::string & dataType,
unsigned int & dataSize,
unsigned int & vectorSize ) const
virtual

Implements DRO::DataReductionOperator.

Definition at line 1346 of file datareductionoperator.cpp.

◆ getName()

std::string DRO::VariableEffectiveSparsityThreshold::getName ( ) const
virtual

Implements DRO::DataReductionOperator.

Definition at line 1353 of file datareductionoperator.cpp.

◆ reduceData()

bool DRO::VariableEffectiveSparsityThreshold::reduceData ( const SpatialCell * cell,
char * buffer )
virtual

Reduce the data and write the data vector to the given vlsv output buffer.

Parameters
cellthe SpatialCell to reduce data out of
bufferBuffer in which the reduced data is written.
Returns
If true, DataReductionOperator reduced data successfully.

Reimplemented from DRO::DataReductionOperator.

Definition at line 1355 of file datareductionoperator.cpp.

Here is the call graph for this function:

◆ reduceDiagnostic()

bool DRO::VariableEffectiveSparsityThreshold::reduceDiagnostic ( const spatial_cell::SpatialCell * cell,
Real * result )
virtual

Reduce the data and write the data vector to the given variable. If the vector length is larger than one, memory gets corrupted. Note that this function is only used for writing into diagnostic files.

Parameters
cellthe SpatialCell to reduce data out of
bufferBuffer in which the reduced data is written.
Returns
If true, DataReductionOperator reduced data successfully.

Reimplemented from DRO::DataReductionOperator.

Definition at line 1363 of file datareductionoperator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpatialCell()

bool DRO::VariableEffectiveSparsityThreshold::setSpatialCell ( const SpatialCell * cell)
virtual

Implements DRO::DataReductionOperator.

Definition at line 1368 of file datareductionoperator.cpp.

Member Data Documentation

◆ popID

uint DRO::VariableEffectiveSparsityThreshold::popID
protected

Definition at line 552 of file datareductionoperator.h.

◆ popName

std::string DRO::VariableEffectiveSparsityThreshold::popName
protected

Definition at line 553 of file datareductionoperator.h.


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