VAPOR3 3.9.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VAPoR::DerivedParticleDensity Class Reference

#include <DerivedParticleDensity.h>

Inheritance diagram for VAPoR::DerivedParticleDensity:
VAPoR::DerivedDataVar VAPoR::DerivedVar Wasp::MyBase VAPoR::DerivedParticleAverage

Public Member Functions

 DerivedParticleDensity (string varName, DC *dc, string meshName, DataMgr *dataMgr)
 
virtual int Initialize () override
 
virtual int OpenVariableRead (size_t ts, int level=0, int lod=0) override
 
virtual int CloseVariable (int fd) override
 
virtual int ReadRegion (int fd, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region) override
 
virtual int GetDimLensAtLevel (int level, std::vector< size_t > &dims_at_level, std::vector< size_t > &bs_at_level) const override
 
virtual bool VariableExists (size_t ts, int reflevel, int lod) const override
 
virtual bool GetBaseVarInfo (DC::BaseVar &var) const override
 
virtual bool GetDataVarInfo (DC::DataVar &cvar) const override
 
virtual std::vector< string > GetInputs () const override
 
- Public Member Functions inherited from VAPoR::DerivedDataVar
 DerivedDataVar (string varName)
 
virtual ~DerivedDataVar ()
 
virtual bool GetDataVarInfo (DC::DataVar &cvar) const =0
 
- Public Member Functions inherited from VAPoR::DerivedVar
 DerivedVar (string varName)
 
virtual ~DerivedVar ()
 
virtual int Initialize ()=0
 
string GetName () const
 
virtual bool GetBaseVarInfo (DC::BaseVar &var) const =0
 
virtual bool GetAtt (string attname, std::vector< double > &values) const
 
virtual bool GetAtt (string attname, std::vector< long > &values) const
 
virtual bool GetAtt (string attname, string &values) const
 
virtual std::vector< string > GetAttNames () const
 
virtual DC::XType GetAttType (string attname) const
 
virtual std::vector< string > GetInputs () const =0
 
virtual int GetDimLensAtLevel (int level, std::vector< size_t > &dims_at_level, std::vector< size_t > &bs_at_level) const =0
 
virtual int GetDimLensAtLevel (int level, std::vector< size_t > &dims_at_level, std::vector< size_t > &bs_at_level, long ts) const
 
virtual size_t GetNumRefLevels () const
 
virtual std::vector< size_t > GetCRatios () const
 
virtual int OpenVariableRead (size_t ts, int level=0, int lod=0)=0
 
virtual int CloseVariable (int fd)=0
 
virtual int ReadRegion (int fd, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region)=0
 
virtual int ReadRegion (int fd, const std::vector< size_t > &min, const std::vector< size_t > &max, double *region)
 
virtual bool VariableExists (size_t ts, int reflevel, int lod) const =0
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Protected Member Functions

virtual void compute (Grid *inGrid, float *output, int xd, int yd, int zd, size_t realNP) const
 
- Protected Member Functions inherited from VAPoR::DerivedVar
int _getVar (DC *dc, size_t ts, string varname, int level, int lod, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region) const
 
int _getVarDestagger (DC *dc, size_t ts, string varname, int level, int lod, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region, int stagDim) const
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Protected Attributes

string _dataVar
 
- Protected Attributes inherited from VAPoR::DerivedVar
string _derivedVarName
 
DC::FileTable _fileTable
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 

Detailed Description

Definition at line 8 of file DerivedParticleDensity.h.

Constructor & Destructor Documentation

◆ DerivedParticleDensity()

VAPoR::DerivedParticleDensity::DerivedParticleDensity ( string  varName,
DC dc,
string  meshName,
DataMgr dataMgr 
)

Member Function Documentation

◆ CloseVariable()

virtual int VAPoR::DerivedParticleDensity::CloseVariable ( int  fd)
overridevirtual

Implements VAPoR::DerivedVar.

◆ compute()

virtual void VAPoR::DerivedParticleDensity::compute ( Grid inGrid,
float *  output,
int  xd,
int  yd,
int  zd,
size_t  realNP 
) const
protectedvirtual

Reimplemented in VAPoR::DerivedParticleAverage.

◆ GetBaseVarInfo()

virtual bool VAPoR::DerivedParticleDensity::GetBaseVarInfo ( DC::BaseVar var) const
overridevirtual

Implements VAPoR::DerivedVar.

◆ GetDataVarInfo()

virtual bool VAPoR::DerivedParticleDensity::GetDataVarInfo ( DC::DataVar cvar) const
overridevirtual

Implements VAPoR::DerivedDataVar.

◆ GetDimLensAtLevel()

virtual int VAPoR::DerivedParticleDensity::GetDimLensAtLevel ( int  level,
std::vector< size_t > &  dims_at_level,
std::vector< size_t > &  bs_at_level 
) const
overridevirtual

Implements VAPoR::DerivedVar.

◆ GetInputs()

virtual std::vector< string > VAPoR::DerivedParticleDensity::GetInputs ( ) const
overridevirtual

Implements VAPoR::DerivedVar.

◆ Initialize()

virtual int VAPoR::DerivedParticleDensity::Initialize ( )
overridevirtual

Implements VAPoR::DerivedVar.

Reimplemented in VAPoR::DerivedParticleAverage.

◆ OpenVariableRead()

virtual int VAPoR::DerivedParticleDensity::OpenVariableRead ( size_t  ts,
int  level = 0,
int  lod = 0 
)
overridevirtual

Implements VAPoR::DerivedVar.

◆ ReadRegion()

virtual int VAPoR::DerivedParticleDensity::ReadRegion ( int  fd,
const std::vector< size_t > &  min,
const std::vector< size_t > &  max,
float *  region 
)
overridevirtual

Implements VAPoR::DerivedVar.

◆ VariableExists()

virtual bool VAPoR::DerivedParticleDensity::VariableExists ( size_t  ts,
int  reflevel,
int  lod 
) const
overridevirtual

Implements VAPoR::DerivedVar.

Member Data Documentation

◆ _dataVar

string VAPoR::DerivedParticleDensity::_dataVar
protected

Definition at line 26 of file DerivedParticleDensity.h.


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