/[escript]/branches/trilinos_from_5897/escriptcore/src/FunctionSpace.h
ViewVC logotype

Diff of /branches/trilinos_from_5897/escriptcore/src/FunctionSpace.h

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

revision 5962 by caltinay, Fri Feb 5 03:37:49 2016 UTC revision 5963 by caltinay, Mon Feb 22 06:59:27 2016 UTC
# Line 81  public: Line 81  public:
81        \brief Returns the shape of the data needed to represent the function        \brief Returns the shape of the data needed to represent the function
82               space.               space.
83      */      */
84      std::pair<int,dim_t> getDataShape() const;      std::pair<int,DataTypes::dim_t> getDataShape() const;
85    
86      /**      /**
87        \brief Comparison operator.  Returns true if function spaces are equal.        \brief Comparison operator.  Returns true if function spaces are equal.
# Line 99  public: Line 99  public:
99      /**      /**
100        \brief Returns the tag associated with the given sample number.        \brief Returns the tag associated with the given sample number.
101      */      */
102      int getTagFromSampleNo(dim_t sampleNo) const;      int getTagFromSampleNo(DataTypes::dim_t sampleNo) const;
103    
104      /**      /**
105        \brief Returns the tag associated with the given data-point number.        \brief Returns the tag associated with the given data-point number.
106      */      */
107      int getTagFromDataPointNo(dim_t dataPointNo) const;      int getTagFromDataPointNo(DataTypes::dim_t dataPointNo) const;
108    
109      /**      /**
110        \brief Returns the reference number associated with the given data-point        \brief Returns the reference number associated with the given data-point
111               number.               number.
112      */      */
113      dim_t getReferenceIDFromDataPointNo(dim_t dataPointNo) const;      DataTypes::dim_t getReferenceIDFromDataPointNo(DataTypes::dim_t dataPointNo) const;
114    
115      /**      /**
116        \brief Returns the reference number associated with the given sample        \brief Returns the reference number associated with the given sample
# Line 119  public: Line 119  public:
119               to use sampleNo as an offset.               to use sampleNo as an offset.
120      */      */
121      inline      inline
122      dim_t getReferenceIDOfSample(dim_t sampleNo) const {      DataTypes::dim_t getReferenceIDOfSample(DataTypes::dim_t sampleNo) const {
123          return borrowSampleReferenceIDs()[sampleNo];          return borrowSampleReferenceIDs()[sampleNo];
124      }      }
125    
# Line 128  public: Line 128  public:
128               return true               return true
129      */      */
130      inline      inline
131      bool ownSample(dim_t sampleNo) const {      bool ownSample(DataTypes::dim_t sampleNo) const {
132          return m_domain->ownSample(m_functionSpaceType, sampleNo);          return m_domain->ownSample(m_functionSpaceType, sampleNo);
133      }      }
134    
135      /**      /**
136        \brief Returns a borrowed reference to the list of sample reference IDs        \brief Returns a borrowed reference to the list of sample reference IDs
137      */      */
138      const dim_t* borrowSampleReferenceIDs() const;      const DataTypes::dim_t* borrowSampleReferenceIDs() const;
139    
140      /**      /**
141        \brief Returns the spatial locations of the data points.        \brief Returns the spatial locations of the data points.
# Line 157  public: Line 157  public:
157        \brief Returns the number of samples.        \brief Returns the number of samples.
158      */      */
159      inline      inline
160      dim_t getNumSamples() const { return getDataShape().second; }      DataTypes::dim_t getNumSamples() const { return getDataShape().second; }
161    
162      /**      /**
163        \brief Returns the number of data points per sample.        \brief Returns the number of data points per sample.

Legend:
Removed from v.5962  
changed lines
  Added in v.5963

  ViewVC Help
Powered by ViewVC 1.1.26