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

Diff of /trunk-mpi-branch/finley/src/CPPAdapter/finleycpp.cpp

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

revision 1222 by ksteube, Tue May 15 03:23:17 2007 UTC revision 1223 by gross, Fri Aug 3 02:40:39 2007 UTC
# Line 103  BOOST_PYTHON_MODULE(finleycpp) Line 103  BOOST_PYTHON_MODULE(finleycpp)
103        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0,        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0,
104        arg("periodic0")=false,arg("periodic1")=false,arg("periodic2")=false,        arg("periodic0")=false,arg("periodic1")=false,arg("periodic2")=false,
105        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
106        arg("useElementsOnFace")=false),        arg("useElementsOnFace")=false,
107          arg("useFullElementOrder")=false),
108        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
109    
110    def ("Rectangle",finley::rectangle,    def ("Rectangle",finley::rectangle,
# Line 111  BOOST_PYTHON_MODULE(finleycpp) Line 112  BOOST_PYTHON_MODULE(finleycpp)
112        arg("l0")=1.0,arg("l1")=1.0,        arg("l0")=1.0,arg("l1")=1.0,
113        arg("periodic0")=false,arg("periodic1")=false,        arg("periodic0")=false,arg("periodic1")=false,
114        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
115        arg("useElementsOnFace")=false),        arg("useElementsOnFace")=false,
116        return_value_policy<manage_new_object>());        arg("useFullElementOrder")=false),
   
   def("Interval",finley::interval,  
       (arg("n1")=1,arg("order")=1,  
       arg("l1")=1.0,arg("periodic0")=false,  
       arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  
       arg("useElementsOnFace")=false),  
117        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
118    
119    def("Merge",finley::meshMerge,    def("Merge",finley::meshMerge,
# Line 146  BOOST_PYTHON_MODULE(finleycpp) Line 141  BOOST_PYTHON_MODULE(finleycpp)
141        .def("getDim",&finley::MeshAdapter::getDim)        .def("getDim",&finley::MeshAdapter::getDim)
142        .def("getDataShape",&finley::MeshAdapter::getDataShape)        .def("getDataShape",&finley::MeshAdapter::getDataShape)
143        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)
144          .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)
145        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
146        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)
147        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)
# Line 158  BOOST_PYTHON_MODULE(finleycpp) Line 154  BOOST_PYTHON_MODULE(finleycpp)
154        .def("setTagMap",&finley::MeshAdapter::setTagMap)        .def("setTagMap",&finley::MeshAdapter::setTagMap)
155        .def("getTag",&finley::MeshAdapter::getTag)        .def("getTag",&finley::MeshAdapter::getTag)
156        .def("isValidTagName",&finley::MeshAdapter::isValidTagName)        .def("isValidTagName",&finley::MeshAdapter::isValidTagName)
157        .def("showTagNames",&finley::MeshAdapter::showTagNames);        .def("showTagNames",&finley::MeshAdapter::showTagNames)
158          .def("getMPISize",&finley::MeshAdapter::getMPISize)
159          .def("getMPIRank",&finley::MeshAdapter::getMPIRank);
160    
161    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
162        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)

Legend:
Removed from v.1222  
changed lines
  Added in v.1223

  ViewVC Help
Powered by ViewVC 1.1.26