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

Diff of /trunk/dudley/src/CPPAdapter/dudleycpp.cpp

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

revision 1326 by ksteube, Mon Oct 1 08:10:41 2007 UTC revision 1345 by ksteube, Wed Nov 14 07:53:34 2007 UTC
# Line 88  BOOST_PYTHON_MODULE(finleycpp) Line 88  BOOST_PYTHON_MODULE(finleycpp)
88    // NOTE: The return_value_policy is necessary for functions that    // NOTE: The return_value_policy is necessary for functions that
89    // return pointers.    // return pointers.
90    
91    def("load",finley::loadMesh,    def("LoadMesh",finley::loadMesh,
92        (arg("fileName")="file.nc"),        (arg("fileName")="file.nc"),
93        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
94    def("ReadMesh",finley::readMesh,    def("ReadMesh",finley::readMesh,
# Line 141  BOOST_PYTHON_MODULE(finleycpp) Line 141  BOOST_PYTHON_MODULE(finleycpp)
141        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter",init<optional <Finley_Mesh*> >())
142        .def(init<const finley::MeshAdapter&>())        .def(init<const finley::MeshAdapter&>())
143        .def("write",&finley::MeshAdapter::write)        .def("write",&finley::MeshAdapter::write)
144        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info)        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info,(arg("full")=false))
145        .def("dump",&finley::MeshAdapter::write)        .def("dump",&finley::MeshAdapter::dump)
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)
# Line 166  BOOST_PYTHON_MODULE(finleycpp) Line 166  BOOST_PYTHON_MODULE(finleycpp)
166    
167    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
168        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)
169          .def("print_matrix_info",&finley::SystemMatrixAdapter::Print_Matrix_Info,(arg("full")=false))
170        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
171        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
172        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)

Legend:
Removed from v.1326  
changed lines
  Added in v.1345

  ViewVC Help
Powered by ViewVC 1.1.26