/[escript]/trunk/finley/src/CPPAdapter/finleycpp.cpp
ViewVC logotype

Diff of /trunk/finley/src/CPPAdapter/finleycpp.cpp

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

revision 1370 by gross, Wed Jan 2 09:21:43 2008 UTC revision 1754 by ksteube, Sun Sep 7 22:07:26 2008 UTC
# Line 79  using namespace boost::python; Line 79  using namespace boost::python;
79  BOOST_PYTHON_MODULE(finleycpp)  BOOST_PYTHON_MODULE(finleycpp)
80  {  {
81    
   // def("ReadMesh",finley::readMesh,readMesh_overloads());  
   // def("Brick",finley::brick,brick_overloads());  
   // def("Rectangle",finley::rectangle,rectangle_overloads());  
   // def("Interval",finley::interval,interval_overloads());  
   // def("GlueFaces",finley::glueFaces,glueFaces_overloads());  
   // def("JoinFaces",finley::joinFaces,joinFaces_overloads());  
82    //    //
83    // NOTE: The return_value_policy is necessary for functions that    // NOTE: The return_value_policy is necessary for functions that
84    // return pointers.    // return pointers.
85      //
86      register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));
87    
88    def("LoadMesh",finley::loadMesh,    def("LoadMesh",finley::loadMesh,
89        (arg("fileName")="file.nc"),        (arg("fileName")="file.nc"),
# Line 150  BOOST_PYTHON_MODULE(finleycpp) Line 146  BOOST_PYTHON_MODULE(finleycpp)
146        .def("getDescription",&finley::MeshAdapter::getDescription)        .def("getDescription",&finley::MeshAdapter::getDescription)
147        .def("getDim",&finley::MeshAdapter::getDim)        .def("getDim",&finley::MeshAdapter::getDim)
148        .def("getDataShape",&finley::MeshAdapter::getDataShape)        .def("getDataShape",&finley::MeshAdapter::getDataShape)
149          .def("getNumDataPointsGlobal",&finley::MeshAdapter::getNumDataPointsGlobal)
150        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)
151        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)
152        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
# Line 179  BOOST_PYTHON_MODULE(finleycpp) Line 176  BOOST_PYTHON_MODULE(finleycpp)
176        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
177    
178    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >
179        ("OperatorAdapter",no_init)        ("TransportProblemAdapter",no_init)
180          .def("getSafeTimeStepSize",&finley::TransportProblemAdapter::getSafeTimeStepSize)
181        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);
   
   
   
   register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));  
   
182  }  }

Legend:
Removed from v.1370  
changed lines
  Added in v.1754

  ViewVC Help
Powered by ViewVC 1.1.26