VisItData.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef __WEIPA_VISITDATA_H__
#define __WEIPA_VISITDATA_H__
#include <escript/AbstractDomain.h>
#include <escript/Data.h>
#include <weipa/EscriptDataset.h>
#include <VisItInterfaceTypes_V2.h>
namespace weipa {
class VisItData {
public:
VisItData() : runFlag(false) {}
void publishData(EscriptDataset_ptr ds) { dataset=ds; }
void setCommandNames(std::vector<std::string> names) { cmdNames=names; }
void setSimulationStatus(bool running) { runFlag=running; }
visit_handle getDomainList();
visit_handle getMesh(const char* name);
visit_handle getSimMetaData();
visit_handle getVariable(const char* name);
private:
void addExpressionMetadata(visit_handle smd, const std::string& name,
const std::string& def, int type);
void addMeshMetadata(visit_handle smd, const std::string& name,
int dim, int numDoms);
void addVariableMetadata(visit_handle smd, const std::string& name,
const std::string& meshName, int centering,
int rank);
bool runFlag;
EscriptDataset_ptr dataset;
std::vector<std::string> cmdNames;
std::map<std::string, DataVar_ptr> variables;
};
typedef boost::shared_ptr<VisItData> VisItData_ptr;
} // namespace weipa
#endif // __WEIPA_VISITDATA_H__
weipa::VisItData::variables
std::map< std::string, DataVar_ptr > variables
Definition: VisItData.h:83
weipa::VisItData::addVariableMetadata
void addVariableMetadata(visit_handle smd, const std::string &name, const std::string &meshName, int centering, int rank)
Definition: VisItData.cpp:277
weipa::VisItData::runFlag
bool runFlag
Definition: VisItData.h:80
weipa::VisItData::getMesh
visit_handle getMesh(const char *name)
Definition: VisItData.cpp:150
weipa::EscriptDataset_ptr
boost::shared_ptr< EscriptDataset > EscriptDataset_ptr
Definition: weipa.h:68
weipa::ZONETYPE_HEX
@ ZONETYPE_HEX
Definition: ElementData.h:58
weipa::VisItData::VisItData
VisItData()
Definition: VisItData.h:60
weipa::ZONETYPE_TRIANGLE
@ ZONETYPE_TRIANGLE
Definition: ElementData.h:62
weipa::DataVar_ptr
boost::shared_ptr< DataVar > DataVar_ptr
Definition: weipa.h:65
weipa
Definition: DataVar.cpp:51
weipa::VisItData::publishData
void publishData(EscriptDataset_ptr ds)
Definition: VisItData.h:62
weipa::VisItData::addMeshMetadata
void addMeshMetadata(visit_handle smd, const std::string &name, int dim, int numDoms)
Definition: VisItData.cpp:259
weipa::VisItData::getDomainList
visit_handle getDomainList()
Definition: VisItData.cpp:126
weipa::VisItData::addExpressionMetadata
void addExpressionMetadata(visit_handle smd, const std::string &name, const std::string &def, int type)
Definition: VisItData.cpp:244
weipa::ElementData_ptr
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:67
weipa::VisItData::cmdNames
std::vector< std::string > cmdNames
Definition: VisItData.h:82
weipa::VisItData::setCommandNames
void setCommandNames(std::vector< std::string > names)
Definition: VisItData.h:63
weipa::VisItData::getSimMetaData
visit_handle getSimMetaData()
Definition: VisItData.cpp:44
weipa::ZONETYPE_QUAD
@ ZONETYPE_QUAD
Definition: ElementData.h:60
weipa::NodeData_ptr
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:69
weipa::VarVector
std::vector< VarInfo > VarVector
Definition: EscriptDataset.h:46
weipa::ZONETYPE_TET
@ ZONETYPE_TET
Definition: ElementData.h:61
weipa::VisItData::dataset
EscriptDataset_ptr dataset
Definition: VisItData.h:81
MPI_Comm
int MPI_Comm
Definition: EsysMPI.h:42
weipa::ZONETYPE_POLYGON
@ ZONETYPE_POLYGON
Definition: ElementData.h:59
weipa::VisItData_ptr
boost::shared_ptr< VisItData > VisItData_ptr
Definition: VisItData.h:72
weipa::DomainChunk_ptr
boost::shared_ptr< DomainChunk > DomainChunk_ptr
Definition: weipa.h:66
weipa::VisItData::setSimulationStatus
void setSimulationStatus(bool running)
Definition: VisItData.h:64
weipa::VisItData::getVariable
visit_handle getVariable(const char *name)
Definition: VisItData.cpp:224
weipa::ZONETYPE_BEAM
@ ZONETYPE_BEAM
Definition: ElementData.h:57