/[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 2481 by jfenwick, Wed Jun 17 04:42:13 2009 UTC revision 2482 by jfenwick, Fri Jun 19 05:56:20 2009 UTC
# Line 24  Line 24 
24  #include "DataVector.h"  #include "DataVector.h"
25  #include "paso/Paso_MPI.h"  #include "paso/Paso_MPI.h"
26  #include "EscriptParams.h"  #include "EscriptParams.h"
27    #include "TestDomain.h"
28    
29    
30  extern "C" {  extern "C" {
# Line 135  BOOST_PYTHON_MODULE(escriptcpp) Line 136  BOOST_PYTHON_MODULE(escriptcpp)
136         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId)         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId)
137         .def("getTransportTypeId",&escript::AbstractContinuousDomain::getTransportTypeId);         .def("getTransportTypeId",&escript::AbstractContinuousDomain::getTransportTypeId);
138    
139    
140      //
141      // Interface for TestDomain
142      //
143      class_ <escript::TestDomain, bases<escript::AbstractDomain> >("TestDomain", "Test Class for domains with no structure. May be removed from future releases without notice.", init<int,int>());
144    
145      // This is the only python visible way to get a TestDomain
146      def("getTestDomainFunctionSpace",&escript::getTestDomainFunctionSpace, "For testing only. May be removed without notice.");
147    
148    //    //
149    // Interface for FunctionSpace    // Interface for FunctionSpace
150    //    //
# Line 174  BOOST_PYTHON_MODULE(escriptcpp) Line 184  BOOST_PYTHON_MODULE(escriptcpp)
184      .def("getShape",&escript::Data::getShapeTuple)      .def("getShape",&escript::Data::getShapeTuple)
185      .def("getRank",&escript::Data::getDataPointRank)      .def("getRank",&escript::Data::getDataPointRank)
186      .def("dump",&escript::Data::dump)      .def("dump",&escript::Data::dump)
187      .def("toListOfTuples",&escript::Data::toListOfTuples, (arg("scalarastuple")=false))      .def("toListOfTuples",&escript::Data::toListOfTuples, (arg("scalarastuple")=true))
188      .def("copyWithMask",&escript::Data::copyWithMask)      .def("copyWithMask",&escript::Data::copyWithMask)
189      .def("setTaggedValue",&escript::Data::setTaggedValue)      .def("setTaggedValue",&escript::Data::setTaggedValue)
190      .def("setTaggedValue",&escript::Data::setTaggedValueByName)      .def("setTaggedValue",&escript::Data::setTaggedValueByName)
# Line 377  BOOST_PYTHON_MODULE(escriptcpp) Line 387  BOOST_PYTHON_MODULE(escriptcpp)
387    // Register esysExceptionTranslator    // Register esysExceptionTranslator
388    //    //
389    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);
   
390  }  }

Legend:
Removed from v.2481  
changed lines
  Added in v.2482

  ViewVC Help
Powered by ViewVC 1.1.26