/[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 767 by gross, Fri Jun 30 07:29:08 2006 UTC revision 797 by gross, Thu Aug 3 02:03:18 2006 UTC
# Line 19  Line 19 
19  #include "AbstractDomain.h"  #include "AbstractDomain.h"
20  #include "Utils.h"  #include "Utils.h"
21  #include "AbstractSystemMatrix.h"  #include "AbstractSystemMatrix.h"
22    #include "DataVector.h"
23    
24  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
25    
# Line 69  BOOST_PYTHON_MODULE(escriptcpp) Line 70  BOOST_PYTHON_MODULE(escriptcpp)
70  {  {
71    def("setNumberOfThreads",escript::setNumberOfThreads);    def("setNumberOfThreads",escript::setNumberOfThreads);
72    def("getNumberOfThreads",escript::getNumberOfThreads);    def("getNumberOfThreads",escript::getNumberOfThreads);
73      def("releaseUnusedMemory",escript::releaseUnusedMemory);
74    
75    
76    //    //
77    // Interface for AbstractDomain    // Interface for AbstractDomain
# Line 118  BOOST_PYTHON_MODULE(escriptcpp) Line 121  BOOST_PYTHON_MODULE(escriptcpp)
121      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())
122      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())
123      .def("isEmpty",&escript::Data::isEmpty)      .def("isEmpty",&escript::Data::isEmpty)
124        .def("isProtected",&escript::Data::isProtected)
125        .def("setProtection",&escript::Data::setProtection)
126      .def("getShape",&escript::Data::getShapeTuple)      .def("getShape",&escript::Data::getShapeTuple)
127      .def("getRank",&escript::Data::getDataPointRank)      .def("getRank",&escript::Data::getDataPointRank)
128      .def("copyWithMask",&escript::Data::copyWithMask)      .def("copyWithMask",&escript::Data::copyWithMask)
# Line 169  BOOST_PYTHON_MODULE(escriptcpp) Line 174  BOOST_PYTHON_MODULE(escriptcpp)
174      .def("_log10",&escript::Data::log10)      .def("_log10",&escript::Data::log10)
175      .def("_log",&escript::Data::log)      .def("_log",&escript::Data::log)
176      .def("_sign",&escript::Data::sign)      .def("_sign",&escript::Data::sign)
177        .def("_symmetric",&escript::Data::symmetric)
178        .def("_nonsymmetric",&escript::Data::nonsymmetric)
179        .def("_matrixtrace",&escript::Data::matrixtrace)
180      .def("_eigenvalues",&escript::Data::eigenvalues)      .def("_eigenvalues",&escript::Data::eigenvalues)
181      .def("_eigenvalues_and_eigenvectors",&escript::Data::eigenvalues_and_eigenvectors,(arg("tol")=1.e-13))      .def("_eigenvalues_and_eigenvectors",&escript::Data::eigenvalues_and_eigenvectors,(arg("tol")=1.e-13))
182      // functions returning a single real number:      // functions returning a single real number:

Legend:
Removed from v.767  
changed lines
  Added in v.797

  ViewVC Help
Powered by ViewVC 1.1.26