/[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 1877 by ksteube, Tue Oct 14 02:58:39 2008 UTC revision 2061 by jfenwick, Wed Nov 19 03:40:21 2008 UTC
# Line 78  using namespace boost::python; Line 78  using namespace boost::python;
78    
79  BOOST_PYTHON_MODULE(finleycpp)  BOOST_PYTHON_MODULE(finleycpp)
80  {  {
81      // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures
82      docstring_options docopt(true, true, false);
83    
84    //    //
85    // NOTE: The return_value_policy is necessary for functions that    // NOTE: The return_value_policy is necessary for functions that
# Line 143  BOOST_PYTHON_MODULE(finleycpp) Line 145  BOOST_PYTHON_MODULE(finleycpp)
145    
146    
147    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
148        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter","A concrete class representing a domain. For more details, please consult the c++ documentation.",init<optional <Finley_Mesh*> >())
149        .def(init<const finley::MeshAdapter&>())        .def(init<const finley::MeshAdapter&>())
150        .def("write",&finley::MeshAdapter::write)        .def("write",&finley::MeshAdapter::write)
151        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info,(arg("full")=false))        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info,(arg("full")=false))
# Line 176  BOOST_PYTHON_MODULE(finleycpp) Line 178  BOOST_PYTHON_MODULE(finleycpp)
178        .def("onMasterProcessor",&finley::MeshAdapter::onMasterProcessor);        .def("onMasterProcessor",&finley::MeshAdapter::onMasterProcessor);
179    
180    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
181        ("OperatorAdapter",no_init)        ("OperatorAdapter","A concrete class representing an operator. For more details, please see the c++ documentation.", no_init)
182        .def("print_matrix_info",&finley::SystemMatrixAdapter::Print_Matrix_Info,(arg("full")=false))        .def("print_matrix_info",&finley::SystemMatrixAdapter::Print_Matrix_Info,(arg("full")=false))
183        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
184        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
# Line 184  BOOST_PYTHON_MODULE(finleycpp) Line 186  BOOST_PYTHON_MODULE(finleycpp)
186        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
187    
188    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >
189        ("TransportProblemAdapter",no_init)        ("TransportProblemAdapter","",no_init)
190        .def("getSafeTimeStepSize",&finley::TransportProblemAdapter::getSafeTimeStepSize)        .def("getSafeTimeStepSize",&finley::TransportProblemAdapter::getSafeTimeStepSize)
191        .def("getUnlimitedTimeStepSize",&finley::TransportProblemAdapter::getUnlimitedTimeStepSize)        .def("getUnlimitedTimeStepSize",&finley::TransportProblemAdapter::getUnlimitedTimeStepSize)
192        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);

Legend:
Removed from v.1877  
changed lines
  Added in v.2061

  ViewVC Help
Powered by ViewVC 1.1.26