24#ifndef _GEMA_PLUGIN_NODE_MESH_DATA_H_
25#define _GEMA_PLUGIN_NODE_MESH_DATA_H_
51template <
template <
class>
class Vector>
61 double* coordBuffer()
const {
return _coordinates.numDumpBuffers() == 1 ? (
double*)_coordinates.dumpBuffer(0) : NULL; }
62 double* ghostBuffer()
const {
return _ghostCoordinates.numDumpBuffers() == 1 ? (
double*)_ghostCoordinates.dumpBuffer(0) : NULL; }
67 int addNodes(
GmMesh* mesh,
bool ghost,
int numAddedNodes,
bool updateValueSets,
GmPCR* pcr);
74 size_t nodeMemory()
const {
return _coordinates.usedMemory() + _ghostCoordinates.usedMemory(); }
75 size_t nodeSetsMemory()
const;
77 void releaseMeshNodes();
78 void releaseGhostNodes();
87 Vector<double> _ghostCoordinates;
A helper class to implement state dump operations for a GmpNodeMeshData<Vector> object.
Definition gmpNodeDataDump.h:40
Auxiliar interface used to share node data between the mesh implementation and GmpMeshLoader....
Definition gmpNodeMeshData.h:53
QMap< QString, GmNodeSet * > _nodeSets
Ghost coordinate vector. Size = _coordInfo->size() * _numGhostNodes. Values stored by node.
Definition gmpNodeMeshData.h:92
bool _ghostEnabled
Are ghost nodes enabled for this mesh?
Definition gmpNodeMeshData.h:85
Vector< U > VectorType
A type identifying which vector type we are using.
Definition gmpNodeMeshData.h:56
int _numGhostNodes
The number of mesh ghost nodes.
Definition gmpNodeMeshData.h:86
GmValueInfo * _coordInfo
Information about node coordinates.
Definition gmpNodeMeshData.h:81
Vector< double > _coordinates
Coordinate vector. Size = _coordInfo->size() * _numNodes. Values stored by node.
Definition gmpNodeMeshData.h:83
GmpNodeDataDump< Vector > * _dumper
The object responsible for state dump operations.
Definition gmpNodeMeshData.h:94
int _numNodes
Number of nodes in the mesh.
Definition gmpNodeMeshData.h:82
Declaration of useful configuration definitions for the plugin library.