/[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 1361 by gross, Fri Dec 14 09:26:51 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,
95        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),
96        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
97      def("ReadMeshMPI",finley::readMeshMPI,
98          (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),
99          return_value_policy<manage_new_object>());
100    
101    def("ReadGmsh",finley::readGmsh,    def("ReadGmsh",finley::readGmsh,
102        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),
# Line 135  BOOST_PYTHON_MODULE(finleycpp) Line 138  BOOST_PYTHON_MODULE(finleycpp)
138        arg("optimize")=true),        arg("optimize")=true),
139        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
140    
141    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));  
142    
143    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
144        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter",init<optional <Finley_Mesh*> >())
145        .def(init<const finley::MeshAdapter&>())        .def(init<const finley::MeshAdapter&>())
146        .def("write",&finley::MeshAdapter::write)        .def("write",&finley::MeshAdapter::write)
147        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info)        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info,(arg("full")=false))
148        .def("dump",&finley::MeshAdapter::write)        .def("dump",&finley::MeshAdapter::dump)
149        .def("getDescription",&finley::MeshAdapter::getDescription)        .def("getDescription",&finley::MeshAdapter::getDescription)
150        .def("getDim",&finley::MeshAdapter::getDim)        .def("getDim",&finley::MeshAdapter::getDim)
151        .def("getDataShape",&finley::MeshAdapter::getDataShape)        .def("getDataShape",&finley::MeshAdapter::getDataShape)
# Line 166  BOOST_PYTHON_MODULE(finleycpp) Line 169  BOOST_PYTHON_MODULE(finleycpp)
169    
170    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
171        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)
172          .def("print_matrix_info",&finley::SystemMatrixAdapter::Print_Matrix_Info,(arg("full")=false))
173        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
174        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
175        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
176        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
177    
178      register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));
179    
180  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26