/[escript]/trunk/escript/src/AbstractDomain.h
ViewVC logotype

Diff of /trunk/escript/src/AbstractDomain.h

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

revision 1137 by gross, Thu May 10 08:11:31 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
 // $Id$  
 /*  
  ************************************************************  
  *          Copyright 2006 by ACcESS MNRF                   *  
  *                                                          *  
  *              http://www.access.edu.au                    *  
  *       Primary Business: Queensland, Australia            *  
  *  Licensed under the Open Software License version 3.0    *  
  *     http://www.opensource.org/licenses/osl-3.0.php       *  
  *                                                          *  
  ************************************************************  
1    
2  */  /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        Primary Business: Queensland, Australia
11     *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #if !defined escript_AbstractDomain_20040609_H  #if !defined escript_AbstractDomain_20040609_H
17  #define escript_AbstractDomain_20040609_H  #define escript_AbstractDomain_20040609_H
# Line 20  Line 21 
21  #include <string>  #include <string>
22  #include <map>  #include <map>
23  #include <boost/python/dict.hpp>  #include <boost/python/dict.hpp>
 #include <boost/python/str.hpp>  
24    
25  namespace escript {  namespace escript {
26  // class forward declarations  // class forward declarations
# Line 37  class AbstractDomain { Line 37  class AbstractDomain {
37    
38   public:   public:
39    
40      
41     // structure holding values for X, size and normal     // structure holding values for X, size and normal
42     typedef int StatusType;     typedef int StatusType;
43     // struct ValueBuffer     struct ValueBuffer
44     // {     {
45     //    StatusType m_status;         StatusType m_status;
46     //    boost::shared_ptr<Data> m_data;         boost::shared_ptr<Data> m_data;
47     //};     };
48     // typedef struct ValueBuffer ValueBuffer;     typedef struct ValueBuffer ValueBuffer;
49    
50     //     //
51     // map from function space type code to value buffer     // map from function space type code to value buffer
52     // typedef std::map<int, ValueBuffer> BufferMapType;     typedef std::map<int, ValueBuffer> BufferMapType;
53    
54    
55    /**    /**
# Line 87  class AbstractDomain { Line 87  class AbstractDomain {
87    
88    /**    /**
89       \brief       \brief
90         return the number of processors used for this domain
91      */
92      ESCRIPT_DLL_API
93      virtual int getMPISize() const;
94      /**
95         \brief
96         return the number MPI rank of this processor
97      */
98    
99      ESCRIPT_DLL_API
100      virtual int getMPIRank() const;
101    
102    
103    
104      /**
105         \brief
106       Returns true if the given integer is a valid function space type       Returns true if the given integer is a valid function space type
107       for this domain.       for this domain.
108    */    */
# Line 102  class AbstractDomain { Line 118  class AbstractDomain {
118    
119    /**    /**
120       \brief       \brief
      Return a description for this domain for python.  
   */  
   ESCRIPT_DLL_API  
   const boost::python::str str() const;  
     
   /**  
      \brief  
121       Return a description for the given function space type code.       Return a description for the given function space type code.
122    */    */
123    ESCRIPT_DLL_API    ESCRIPT_DLL_API
# Line 143  class AbstractDomain { Line 152  class AbstractDomain {
152    
153    /**    /**
154       \brief       \brief
155         dumps the domain to an external file filename.
156    
157         This has to be implemented by the actual Domain adapter.
158      */
159      ESCRIPT_DLL_API
160      virtual void dump(const std::string& filename) const;
161    
162      /**
163         \brief
164       Return the number of data points per sample, and the number of samples as a pair.       Return the number of data points per sample, and the number of samples as a pair.
165    
166       This has to be implemented by the actual Domain adapter.       This has to be implemented by the actual Domain adapter.
# Line 363  class AbstractDomain { Line 381  class AbstractDomain {
381   private:   private:
382    
383     // buffer for coordinates used by function spaces     // buffer for coordinates used by function spaces
384     //BufferMapType m_x_buffer;     BufferMapType m_x_buffer;
385    
386     // buffer for normal vectors used by function spaces     // buffer for normal vectors used by function spaces
387     //BufferMapType m_normal_buffer;     BufferMapType m_normal_buffer;
388    
389     // buffer for normal element size used by function spaces     // buffer for normal element size used by function spaces
390     //BufferMapType m_size_buffer;     BufferMapType m_size_buffer;
391    
392  };  };
393    

Legend:
Removed from v.1137  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26