/[escript]/trunk/esys2/escript/src/Data/FunctionSpace.h
ViewVC logotype

Diff of /trunk/esys2/escript/src/Data/FunctionSpace.h

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

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 115 by jgs, Fri Mar 4 07:12:47 2005 UTC
# Line 11  Line 11 
11   *                                                                            *   *                                                                            *
12   ******************************************************************************   ******************************************************************************
13  */  */
14                                                                              
15  #if !defined  escript_FunctionSpace_20040323_H  #if !defined escript_FunctionSpace_20040323_H
16  #define escript_FunctionSpace_20040323_H  #define escript_FunctionSpace_20040323_H
17    
18  #include "escript/Data/AbstractDomain.h"  #include "escript/Data/AbstractDomain.h"
# Line 36  namespace escript { Line 36  namespace escript {
36     template must satisfy     template must satisfy
37  */  */
38    
   
39  class FunctionSpace {  class FunctionSpace {
40    
41   public:   public:
# Line 62  class FunctionSpace { Line 61  class FunctionSpace {
61    
62       Description:       Description:
63       Constructor for FunctionSpace.       Constructor for FunctionSpace.
64    
65       NOTE: The FunctionSpace class relies on the domain existing       NOTE: The FunctionSpace class relies on the domain existing
66       for the lifetime of the FunctionSpace object.       for the lifetime of the FunctionSpace object. ie: domain must
67         be an externally managed object (!).
68    */    */
69    FunctionSpace(const AbstractDomain& domain, int functionSpaceType);    FunctionSpace(const AbstractDomain& domain, int functionSpaceType);
70    
# Line 104  class FunctionSpace { Line 105  class FunctionSpace {
105    
106    /**    /**
107     \brief     \brief
108     Return a test description of the function space.     Return a text description of the function space.
109    */    */
110    std::string toString() const;    std::string toString() const;
111    
# Line 116  class FunctionSpace { Line 117  class FunctionSpace {
117    
118    /**    /**
119     \brief     \brief
120       Return the reference nomber associated with the given sample number.
121      */
122      int getReferenceNoFromSampleNo(int sampleNo) const;
123    
124      /**
125       \brief
126     Return the location of the data points.     Return the location of the data points.
127    */    */
128    escript::Data getX() const;    escript::Data getX() const;
# Line 134  class FunctionSpace { Line 141  class FunctionSpace {
141    
142    /**    /**
143     \brief     \brief
144     Return the number of samples:     Return the number of samples.
145    */    */
146    inline int getNumSamples() const {    inline int getNumSamples() const {
147       return getDataShape().second;       return getDataShape().second;
# Line 158  class FunctionSpace { Line 165  class FunctionSpace {
165    inline int getDim() const {    inline int getDim() const {
166        return getDomain().getDim();        return getDomain().getDim();
167    }    }
168      
169   protected:   protected:
170    
171   private:   private:

Legend:
Removed from v.82  
changed lines
  Added in v.115

  ViewVC Help
Powered by ViewVC 1.1.26