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

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

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

revision 2720 by jfenwick, Mon Jul 20 06:20:06 2009 UTC revision 2721 by jfenwick, Fri Oct 16 05:40:12 2009 UTC
# Line 35  public: Line 35  public:
35    ESCRIPT_DLL_API    ESCRIPT_DLL_API
36    void setInt(const char* name, int value);    void setInt(const char* name, int value);
37    
38      boost::python::list
39      listEscriptParams();
40    
41  private:  private:
42    
43    // If we get more params we can replace this with a map    // If we get more params we can replace this with a map
# Line 42  private: Line 45  private:
45      int autolazy;      int autolazy;
46      int too_many_levels;      int too_many_levels;
47      int too_many_nodes;      int too_many_nodes;
48        int resolve_collective;
49    
50  protected:  protected:
51    // This is to provide fast access for methods in Data.    // This is to provide fast access for methods in Data.
# Line 52  protected: Line 56  protected:
56    int getAUTOLAZY() { return autolazy;}    int getAUTOLAZY() { return autolazy;}
57    int getTOO_MANY_LEVELS() {return too_many_levels;}    int getTOO_MANY_LEVELS() {return too_many_levels;}
58    int getTOO_MANY_NODES() {return too_many_nodes;}    int getTOO_MANY_NODES() {return too_many_nodes;}
59      int getRESOLVE_COLLECTIVE() {return resolve_collective;}
60    
61    friend class escript::Data;    friend class escript::Data;
62    friend class escript::DataLazy;    friend class escript::DataLazy;
# Line 69  protected: Line 74  protected:
74    friend Data operator/(const escript::Data&, const boost::python::api::object&);    friend Data operator/(const escript::Data&, const boost::python::api::object&);
75    friend Data C_GeneralTensorProduct(escript::Data& arg_0, escript::Data& arg_1,    friend Data C_GeneralTensorProduct(escript::Data& arg_0, escript::Data& arg_1,
76                       int axis_offset, int transpose);                       int axis_offset, int transpose);
   
77  };  };
78    
79    
# Line 91  int getEscriptParamInt(const char* name, Line 95  int getEscriptParamInt(const char* name,
95    
96  /**  /**
97    \brief describe available paramters.    \brief describe available paramters.
98    \return a list of tuples (parameter name, description)    \return a list of tuples (parameter name, value, description)
99  */  */
100  ESCRIPT_DLL_API  ESCRIPT_DLL_API
101  boost::python::list listEscriptParams();  inline boost::python::list listEscriptParams()
102    {
103       return escriptParams.listEscriptParams();
104    }
105    
106    
107    
108  }  }
109  #endif  #endif

Legend:
Removed from v.2720  
changed lines
  Added in v.2721

  ViewVC Help
Powered by ViewVC 1.1.26