/[escript]/branches/diaplayground/dudley/src/CPPAdapter/dudleycpp.cpp
ViewVC logotype

Diff of /branches/diaplayground/dudley/src/CPPAdapter/dudleycpp.cpp

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

revision 1360 by ksteube, Thu Dec 13 05:05:00 2007 UTC revision 1370 by gross, Wed Jan 2 09:21:43 2008 UTC
# Line 23  extern "C" { Line 23  extern "C" {
23  #include "MeshAdapter.h"  #include "MeshAdapter.h"
24  #include "MeshAdapterFactory.h"  #include "MeshAdapterFactory.h"
25  #include "SystemMatrixAdapter.h"  #include "SystemMatrixAdapter.h"
26    #include "TransportProblemAdapter.h"
27    
28  #include "FinleyAdapterException.h"  #include "FinleyAdapterException.h"
29  // #include "esysUtils/EsysException.h"  // #include "esysUtils/EsysException.h"
# Line 138  BOOST_PYTHON_MODULE(finleycpp) Line 139  BOOST_PYTHON_MODULE(finleycpp)
139        arg("optimize")=true),        arg("optimize")=true),
140        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
141    
142    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));  
143    
144    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
145        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter",init<optional <Finley_Mesh*> >())
# Line 152  BOOST_PYTHON_MODULE(finleycpp) Line 153  BOOST_PYTHON_MODULE(finleycpp)
153        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)
154        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)
155        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
156          .def("addPDEToTransportProblem",&finley::MeshAdapter::addPDEToTransportProblem)
157        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)
158          .def("newTransportProblem",&finley::MeshAdapter::newTransportProblem)
159        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)
160        .def("setX",&finley::MeshAdapter::setNewX)        .def("setX",&finley::MeshAdapter::setNewX)
161        .def("getX",&finley::MeshAdapter::getX)        .def("getX",&finley::MeshAdapter::getX)
# Line 175  BOOST_PYTHON_MODULE(finleycpp) Line 178  BOOST_PYTHON_MODULE(finleycpp)
178        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
179        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
180    
181      class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >
182          ("OperatorAdapter",no_init)
183          .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);
184    
185    
186    
187      register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));
188    
189  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26