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

#include <datareductionoperator.h>

Inheritance diagram for DRO::Blocks:
Collaboration diagram for DRO::Blocks:

Public Member Functions

 Blocks (cuint popID)
virtual ~Blocks ()
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 SpatialCell *cell, Real *buffer)
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 nBlocks
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 292 of file datareductionoperator.h.

Constructor & Destructor Documentation

◆ Blocks()

DRO::Blocks::Blocks ( cuint popID)

Definition at line 574 of file datareductionoperator.cpp.

Here is the call graph for this function:

◆ ~Blocks()

DRO::Blocks::~Blocks ( )
virtual

Definition at line 577 of file datareductionoperator.cpp.

Member Function Documentation

◆ getDataVectorInfo()

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

Implements DRO::DataReductionOperator.

Definition at line 579 of file datareductionoperator.cpp.

◆ getName()

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

Implements DRO::DataReductionOperator.

Definition at line 586 of file datareductionoperator.cpp.

◆ reduceData()

bool DRO::Blocks::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 588 of file datareductionoperator.cpp.

◆ reduceDiagnostic()

bool DRO::Blocks::reduceDiagnostic ( const 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 594 of file datareductionoperator.cpp.

◆ setSpatialCell()

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

Implements DRO::DataReductionOperator.

Definition at line 599 of file datareductionoperator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nBlocks

uint DRO::Blocks::nBlocks
protected

Definition at line 304 of file datareductionoperator.h.

◆ popID

uint DRO::Blocks::popID
protected

Definition at line 305 of file datareductionoperator.h.

◆ popName

std::string DRO::Blocks::popName
protected

Definition at line 306 of file datareductionoperator.h.


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