/[escript]/trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /trunk/escript/src/escriptcpp.cpp

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

revision 2063 by jfenwick, Wed Nov 19 03:40:21 2008 UTC revision 2064 by jfenwick, Thu Nov 20 04:06:34 2008 UTC
# Line 39  extern "C" { Line 39  extern "C" {
39  #include <boost/python/tuple.hpp>  #include <boost/python/tuple.hpp>
40  #include <boost/python/numeric.hpp>  #include <boost/python/numeric.hpp>
41  #include <boost/smart_ptr.hpp>  #include <boost/smart_ptr.hpp>
42    #include <boost/version.hpp>
43    
44  using namespace boost::python;  using namespace boost::python;
45    
# Line 78  using namespace boost::python; Line 79  using namespace boost::python;
79    
80  BOOST_PYTHON_MODULE(escriptcpp)  BOOST_PYTHON_MODULE(escriptcpp)
81  {  {
82    // This feature was added in boost v1.34
83    #if ((BOOST_VERSION/100)%1000 > 33) || (BOOST_VERSION/100000 >1)
84    //#if ((BOOST_VERSION/100)%1000) > 33
85    // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures    // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures
86    docstring_options docopt(true, true, false);    docstring_options docopt(true, true, false);
87    #endif
88    
89    def("setNumberOfThreads",escript::setNumberOfThreads);    def("setNumberOfThreads",escript::setNumberOfThreads);
90    def("getNumberOfThreads",escript::getNumberOfThreads);    def("getNumberOfThreads",escript::getNumberOfThreads);

Legend:
Removed from v.2063  
changed lines
  Added in v.2064

  ViewVC Help
Powered by ViewVC 1.1.26