/[escript]/trunk/bruce/src/Bruce/Bruce.h
ViewVC logotype

Diff of /trunk/bruce/src/Bruce/Bruce.h

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

revision 150 by jgs, Thu Sep 15 03:44:45 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 12  Line 12 
12   *                                                                            *   *                                                                            *
13   ******************************************************************************   ******************************************************************************
14  */  */
15                                                                              
16  #if !defined bruce_Bruce_20050829_H  #if !defined bruce_Bruce_20050829_H
17  #define bruce_Bruce_20050829_H  #define bruce_Bruce_20050829_H
18    
# Line 28  namespace bruce { Line 28  namespace bruce {
28    
29  /**  /**
30     \brief     \brief
31     Bruce implements the AbstractContinuousDomain     Bruce implements a structured AbstractContinuousDomain.
    interface for the Bruce library.  
32    
33     Description:     Description:
34     Bruce implements the AbstractContinuousDomain     Bruce implements a structured AbstractContinuousDomain.
    interface for the Bruce library.  
35  */  */
36    
37  class Bruce : public escript::AbstractContinuousDomain {  class Bruce : public escript::AbstractContinuousDomain {
# Line 126  class Bruce : public escript::AbstractCo Line 124  class Bruce : public escript::AbstractCo
124       Return a description for this domain.       Return a description for this domain.
125    */    */
126    virtual    virtual
127      inline
128    std::string    std::string
129    getDescription() const;    getDescription() const
130      {
131        return "Bruce";
132      }
133    
134    /**    /**
135       \brief       \brief
# Line 151  class Bruce : public escript::AbstractCo Line 153  class Bruce : public escript::AbstractCo
153       Return a continuous FunctionSpace code.       Return a continuous FunctionSpace code.
154    */    */
155    virtual    virtual
156      inline
157    int    int
158    getContinuousFunctionCode() const;    getContinuousFunctionCode() const
159      {
160        return ContinuousFunction;
161      }
162    
163    /**    /**
164       \brief       \brief
165       Return a function FunctionSpace code.       Return a function FunctionSpace code.
166    */    */
167    virtual    virtual
168      inline
169    int    int
170    getFunctionCode() const;    getFunctionCode() const
171      {
172        return Function;
173      }
174    
175    /**    /**
176       \brief       \brief
177       Return the spatial dimension of the mesh.       Return the spatial dimension of the mesh.
178    */    */
179    virtual    virtual
180      inline
181    int    int
182    getDim() const;    getDim() const
183      {
184        return m_origin.size();
185      }
186    
187    /**    /**
188       \brief       \brief
# Line 218  class Bruce : public escript::AbstractCo Line 232  class Bruce : public escript::AbstractCo
232    virtual bool operator==(const AbstractDomain& other) const;    virtual bool operator==(const AbstractDomain& other) const;
233    virtual bool operator!=(const AbstractDomain& other) const;    virtual bool operator!=(const AbstractDomain& other) const;
234    
235      /*
236         \brief
237         Return the tag key for the given sample number.
238      */
239      virtual
240      int
241      getTagFromSampleNo(int functionSpaceCode, int sampleNo) const;
242    
243      /**
244         \brief
245         Return the reference number of the given sample number.
246      */
247      virtual
248      int
249      getReferenceNoFromSampleNo(int functionSpaceCode, int sampleNo) const;
250    
251    
252   protected:   protected:
253    
254    /**    /**
# Line 238  class Bruce : public escript::AbstractCo Line 269  class Bruce : public escript::AbstractCo
269       \brief       \brief
270       Check if all components of vector are zero.       Check if all components of vector are zero.
271    */    */
272      static
273    bool    bool
274    isZero(DimVec vec) const;    isZero(DimVec vec);
275    
276   private:   private:
277    

Legend:
Removed from v.150  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26