/[escript]/trunk/dataexporter/src/NodeData.h
ViewVC logotype

Diff of /trunk/dataexporter/src/NodeData.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2885 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2886 by caltinay, Thu Jan 28 05:39:23 2010 UTC
# Line 15  Line 15 
15  #define __NODEDATA_H__  #define __NODEDATA_H__
16    
17  #include <escriptexport/escriptexport.h>  #include <escriptexport/escriptexport.h>
18    #include <ostream>
19    
20  class DBfile;  class DBfile;
21  class NcFile;  class NcFile;
# Line 54  public: Line 55  public:
55      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
56      bool writeToSilo(DBfile* dbfile);      bool writeToSilo(DBfile* dbfile);
57    
58        /// \brief Writes coordinates to a stream in VTK text format.
59        ESCRIPTEXPORT_DLL_API
60        void writeCoordinatesVTK(std::ostream& os, int ownIndex);
61    
62      /// \brief Sets the silo path to be used when saving.      /// \brief Sets the silo path to be used when saving.
63      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
64      void setSiloPath(const std::string& path) { siloPath = path; }      void setSiloPath(const std::string& path) { siloPath = path; }
# Line 80  public: Line 85  public:
85      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
86      const IntVec& getNodeIDs() const { return nodeID; }      const IntVec& getNodeIDs() const { return nodeID; }
87    
88        /// \brief Returns the node distribution array
89        ESCRIPTEXPORT_DLL_API
90        const IntVec& getNodeDistribution() const { return nodeDist; }
91    
92        /// \brief Returns the global node index array.
93        ESCRIPTEXPORT_DLL_API
94        const IntVec& getGlobalNodeIndices() const { return nodeGNI; }
95    
96      /// \brief Returns the coordinates of the mesh nodes.      /// \brief Returns the coordinates of the mesh nodes.
97      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
98      const CoordArray& getCoords() const { return coords; }      const CoordArray& getCoords() const { return coords; }
# Line 92  public: Line 105  public:
105      ESCRIPTEXPORT_DLL_API      ESCRIPTEXPORT_DLL_API
106      int getNumNodes() const { return numNodes; }      int getNumNodes() const { return numNodes; }
107    
108        /// \brief Returns the total number of mesh nodes for a distributed mesh.
109        ESCRIPTEXPORT_DLL_API
110        int getGlobalNumNodes() const;
111    
112  protected:  protected:
113      CoordArray coords;         /// x, y[, z] coordinates of nodes      CoordArray coords;         /// x, y[, z] coordinates of nodes
114      int numDims;               /// dimensionality (2 or 3)      int numDims;               /// dimensionality (2 or 3)

Legend:
Removed from v.2885  
changed lines
  Added in v.2886

  ViewVC Help
Powered by ViewVC 1.1.26