/[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 2459 by jfenwick, Thu Jun 4 06:17:54 2009 UTC revision 2533 by gross, Wed Jul 15 05:57:01 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 109  BOOST_PYTHON_MODULE(escriptcpp) Line 110  BOOST_PYTHON_MODULE(escriptcpp)
110    // Interface for AbstractDomain    // Interface for AbstractDomain
111    //    //
112    class_<escript::AbstractDomain, escript::Domain_ptr>("Domain","Base class for all domains.",no_init)    class_<escript::AbstractDomain, escript::Domain_ptr>("Domain","Base class for all domains.",no_init)
113         .def("getStatus",&escript::AbstractDomain::getStatus)
114       .def("setTagMap",&escript::AbstractDomain::setTagMap)       .def("setTagMap",&escript::AbstractDomain::setTagMap)
115       .def("getTag",&escript::AbstractDomain::getTag)       .def("getTag",&escript::AbstractDomain::getTag)
116       .def("isValidTagName",&escript::AbstractDomain::isValidTagName)       .def("isValidTagName",&escript::AbstractDomain::isValidTagName)
# Line 135  BOOST_PYTHON_MODULE(escriptcpp) Line 137  BOOST_PYTHON_MODULE(escriptcpp)
137         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId)         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId)
138         .def("getTransportTypeId",&escript::AbstractContinuousDomain::getTransportTypeId);         .def("getTransportTypeId",&escript::AbstractContinuousDomain::getTransportTypeId);
139    
140    
141      //
142      // Interface for TestDomain
143      //
144      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>());
145    
146      // This is the only python visible way to get a TestDomain
147      def("getTestDomainFunctionSpace",&escript::getTestDomainFunctionSpace, "For testing only. May be removed without notice.");
148    
149    //    //
150    // Interface for FunctionSpace    // Interface for FunctionSpace
151    //    //
# Line 174  BOOST_PYTHON_MODULE(escriptcpp) Line 185  BOOST_PYTHON_MODULE(escriptcpp)
185      .def("getShape",&escript::Data::getShapeTuple)      .def("getShape",&escript::Data::getShapeTuple)
186      .def("getRank",&escript::Data::getDataPointRank)      .def("getRank",&escript::Data::getDataPointRank)
187      .def("dump",&escript::Data::dump)      .def("dump",&escript::Data::dump)
188      .def("toListOfTuples",&escript::Data::toListOfTuples, (arg("scalarastuple")=false))      .def("toListOfTuples",&escript::Data::toListOfTuples, (arg("scalarastuple")=true))
189      .def("copyWithMask",&escript::Data::copyWithMask)      .def("copyWithMask",&escript::Data::copyWithMask)
190      .def("setTaggedValue",&escript::Data::setTaggedValue)      .def("setTaggedValue",&escript::Data::setTaggedValue)
191      .def("setTaggedValue",&escript::Data::setTaggedValueByName)      .def("setTaggedValue",&escript::Data::setTaggedValueByName)
# Line 198  BOOST_PYTHON_MODULE(escriptcpp) Line 209  BOOST_PYTHON_MODULE(escriptcpp)
209      .def("setToZero",&escript::Data::setToZero)      .def("setToZero",&escript::Data::setToZero)
210      .def("interpolate",&escript::Data::interpolate)      .def("interpolate",&escript::Data::interpolate)
211      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)
212        .def("maxGlobalDataPoint",&escript::Data::maxGlobalDataPoint)
213      .def("saveDX",&escript::Data::saveDX)      .def("saveDX",&escript::Data::saveDX)
214      .def("saveVTK",&escript::Data::saveVTK)      .def("saveVTK",&escript::Data::saveVTK)
215      .def("getTagNumber",&escript::Data::getTagNumber)      .def("getTagNumber",&escript::Data::getTagNumber)
# Line 376  BOOST_PYTHON_MODULE(escriptcpp) Line 388  BOOST_PYTHON_MODULE(escriptcpp)
388    // Register esysExceptionTranslator    // Register esysExceptionTranslator
389    //    //
390    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);
   
391  }  }

Legend:
Removed from v.2459  
changed lines
  Added in v.2533

  ViewVC Help
Powered by ViewVC 1.1.26