|
| senseiTypeMacro (ConduitDataAdaptor, sensei::DataAdaptor) |
|
void | PrintSelf (ostream &os, svtkIndent indent) override |
|
void | SetNode (conduit::Node *node) |
|
void | UpdateFields () |
|
int | GetNumberOfMeshes (unsigned int &numMeshes) override |
| Gets the number of meshes a simulation can provide. More...
|
|
int | GetMeshMetadata (unsigned int id, sensei::MeshMetadataPtr &metadata) override |
| Get metadata of the i'th mesh. More...
|
|
int | GetMesh (const std::string &meshName, bool structureOnly, svtkDataObject *&mesh) override |
| Fetches the requested data object from the simulation. More...
|
|
int | AddArray (svtkDataObject *mesh, const std::string &meshName, int association, const std::string &arrayName) override |
| Fetches the named array from the simulation and adds it to the passed mesh. More...
|
|
int | ReleaseData () override |
| Release data allocated for the current timestep. More...
|
|
| senseiBaseTypeMacro (DataAdaptor, svtkObjectBase) |
|
void | PrintSelf (ostream &os, svtkIndent indent) override |
| Prints the current state of the adaptor. More...
|
|
virtual int | SetCommunicator (MPI_Comm comm) |
| Set the communicator used by the adaptor. More...
|
|
MPI_Comm | GetCommunicator () |
| Get the communicator used by the adaptor. More...
|
|
virtual int | AddGhostNodesArray (svtkDataObject *mesh, const std::string &meshName) |
| Adds ghost nodes on the specified mesh. More...
|
|
virtual int | AddGhostCellsArray (svtkDataObject *mesh, const std::string &meshName) |
| Adds ghost cells on the specified mesh. More...
|
|
virtual int | AddArrays (svtkDataObject *mesh, const std::string &meshName, int association, const std::vector< std::string > &arrayNames) |
| Fetches multiple arrays from the simulation and adds them to the mesh. More...
|
|
virtual double | GetDataTime () |
| Get the current simulated time. More...
|
|
virtual void | SetDataTime (double time) |
| Set the current simulated time. More...
|
|
virtual long | GetDataTimeStep () |
| Get the current time step. More...
|
|
virtual void | SetDataTimeStep (long index) |
| Set the current simulated time step. More...
|
|
int sensei::ConduitDataAdaptor::GetMesh |
( |
const std::string & |
meshName, |
|
|
bool |
structureOnly, |
|
|
svtkDataObject *& |
mesh |
|
) |
| |
|
overridevirtual |
Fetches the requested data object from the simulation.
This method will return a svtkDataObject containing the simulation state. Implementers should prefer svtkMultiBlockData over svtkDataSet types. However, both approaches are supported. Callers should typically pass structureOnly
to false. Caller may set stuctureOnly
to true when data arrays without mesh geometry and connectivity are sufficient for processing. If structureOnly
is set to true, then implementers should not populate the mesh geometry and connectivity information. This can result in large savings in data transfer.
- Note
- Callers are to take ownership of the newly allocated mesh and must Delete the returned mesh when finished to prevent a memory leak.
- Parameters
-
[in] | meshName | the name of the mesh to access (see GetMeshMetadata) |
[in] | structureOnly | When set to true the returned mesh may not have any geometry or topology information. |
[out] | mesh | a reference to a pointer where a new VTK object is stored |
- Returns
- zero if successful, non zero if an error occurred
Implements sensei::DataAdaptor.
int sensei::ConduitDataAdaptor::ReleaseData |
( |
| ) |
|
|
overridevirtual |
Release data allocated for the current timestep.
This method allows implementers to free resources that were used in the conversion of the simulation data. However, note that callers of GetMesh must Delete the returned svtkDataObject which typically alleviates the need for the adaptor to hold references to the returned data. In most cases this method should not be overridden.
- Note
- The instrumentation (or bridge) code must call this method when done processing a time step to ensure that all resources are released. Analysis adaptors should not call this method.
- Returns
- zero if successful, non zero if an error occurred
Reimplemented from sensei::DataAdaptor.