/[escript]/branches/dirac/finley/src/CPPAdapter/finleycpp.cpp
ViewVC logotype

Diff of /branches/dirac/finley/src/CPPAdapter/finleycpp.cpp

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

trunk/finley/src/CPPAdapter/finleycpp.cpp revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC branches/dirac/finley/src/CPPAdapter/finleycpp.cpp revision 3554 by jfenwick, Tue Aug 23 00:23:53 2011 UTC
# Line 122  BOOST_PYTHON_MODULE(finleycpp) Line 122  BOOST_PYTHON_MODULE(finleycpp)
122  ":param useMacroElements: Enable the usage of macro elements instead of second order elements.\n:type useMacroElements: ``bool``"  ":param useMacroElements: Enable the usage of macro elements instead of second order elements.\n:type useMacroElements: ``bool``"
123  );  );
124    
125    def ("Brick",finley::brick,    def ("__Brick_driver",finley::brick_driver,
126        (arg("n0")=1,arg("n1")=1,arg("n2")=1,        (arg("params"))
       arg("order")=1,  
       arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0,  
       arg("periodic0")=false,arg("periodic1")=false,arg("periodic2")=false,  
       arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  
       arg("useElementsOnFace")=false,  
       arg("useFullElementOrder")=false,  
       arg("optimize")=false)  
         
 //       ,return_value_policy<manage_new_object>());  
127  ,"Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,l2]."  ,"Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0,l2]."
128  "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n:param n2:\n:type n2:\n"  "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n:param n2:\n:type n2:\n"
129  ":param order: =1, =-1 or =2 gives the order of shape function. If -1 macro elements of order 1 are used.\n"  ":param order: =1, =-1 or =2 gives the order of shape function. If -1 macro elements of order 1 are used.\n"
# Line 147  BOOST_PYTHON_MODULE(finleycpp) Line 138  BOOST_PYTHON_MODULE(finleycpp)
138  ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``"  ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``"
139  );  );
140    
141    def ("Rectangle",finley::rectangle,    def ("__Rectangle_driver",finley::rectangle,
142        (arg("n0")=1,arg("n1")=1,arg("order")=1,        (arg("n0")=1,arg("n1")=1,arg("order")=1,
143        arg("l0")=1.0,arg("l1")=1.0,        arg("l0")=1.0,arg("l1")=1.0,
144        arg("periodic0")=false,arg("periodic1")=false,        arg("periodic0")=false,arg("periodic1")=false,
145        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
146        arg("useElementsOnFace")=false,        arg("useElementsOnFace")=false,
147        arg("useFullElementOrder")=false,        arg("useFullElementOrder")=false,
148        arg("optimize")=false)        arg("optimize")=false,
149          arg("points")=finley::EmptyPythonList,
150          arg("tags")=finley::EmptyPythonList)
151  //       ,return_value_policy<manage_new_object>());  //       ,return_value_policy<manage_new_object>());
152  ,"Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1]."  ,"Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1]."
153  "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n"  "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n"
# Line 229  args("mat", "D", "d"), Line 222  args("mat", "D", "d"),
222  "adds a PDE onto the lumped stiffness matrix\n\n"  "adds a PDE onto the lumped stiffness matrix\n\n"
223  ":param mat:\n:type mat: `Data`\n"  ":param mat:\n:type mat: `Data`\n"
224  ":param D:\n:type D: `Data`\n"  ":param D:\n:type D: `Data`\n"
225  ":param d:\n:type d: `Data`\n")  ":param d:\n:type d: `Data`\n"
226    ":param useHRZ:\n:type useHRZ: bool\n")
227        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS,        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS,
228  args("rhs", "X", "Y", "y", "y_contact"),  args("rhs", "X", "Y", "y", "y_contact"),
229  "adds a PDE onto the stiffness matrix mat and a rhs\n\n"  "adds a PDE onto the stiffness matrix mat and a rhs\n\n"
# Line 322  args("filename" ,"arg",  "metadata", "me Line 316  args("filename" ,"arg",  "metadata", "me
316        .def("getMPISize",&finley::MeshAdapter::getMPISize,":return: the number of processes used for this `Domain`\n:rtype: ``int``")        .def("getMPISize",&finley::MeshAdapter::getMPISize,":return: the number of processes used for this `Domain`\n:rtype: ``int``")
317        .def("getMPIRank",&finley::MeshAdapter::getMPIRank,":return: the rank of this process\n:rtype: ``int``")        .def("getMPIRank",&finley::MeshAdapter::getMPIRank,":return: the rank of this process\n:rtype: ``int``")
318        .def("MPIBarrier",&finley::MeshAdapter::MPIBarrier,"Wait until all processes have reached this point")        .def("MPIBarrier",&finley::MeshAdapter::MPIBarrier,"Wait until all processes have reached this point")
319        .def("onMasterProcessor",&finley::MeshAdapter::onMasterProcessor,":return: True if this code is executing on the master process\n:rtype: `bool`");        .def("onMasterProcessor",&finley::MeshAdapter::onMasterProcessor,":return: True if this code is executing on the master process\n:rtype: `bool`")
320    //       .def("addDiracPoints", &finley::MeshAdapter::addDiracPoints,(arg("points"), arg("tags")=finley::EmptyPythonList),
321    //       "adds points to support more Dirac delta function.\n\n"
322    //          ":param points: list of points where Dirac delta function are to be defined. The location will be adjusted to\n"
323    //  "               to match the nearest node of the finite element mesh.\n:type points: ``list`` of ``list``s of ``floats``\n"
324    //  ":param tags: list of tags to be assigned to the points.\n:type tags: ``list`` of ``int``s or ``strings``\n"    
325    //       )
326    //       .def("addDiracPoint", &finley::MeshAdapter::addDiracPoint,(arg("point"), arg("tag")=-1),
327    //         "adds a point to support more Dirac delta function.\n\n"
328    //          ":param point: point where Dirac delta function are to be defined. The location will be adjusted to\n"
329    //  "               to match the nearest node of the finite element mesh.\n:type point: ``list`` of ``floats``\n"
330    //  ":param tags: tag to be assigned to the point.\n:type tag: ``int``s or ``strings``\n"    
331    //       )
332    //       .def("addDiracPoint", &finley::MeshAdapter::addDiracPointWithTagName,(arg("point"), arg("tag")),
333    //         "adds a point to support more Dirac delta function.\n\n"
334    //          ":param point: point where Dirac delta function are to be defined. The location will be adjusted to\n"
335    //  "               to match the nearest node of the finite element mesh.\n:type point: ``list`` of ``floats``\n"
336    //  ":param tags: tag to be assigned to the point.\n:type tag: ``int``s or ``strings``\n"    
337    //       )
338    ;
339    
340    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
341        ("OperatorAdapter","A concrete class representing an operator. For more details, please see the c++ documentation.", no_init)        ("OperatorAdapter","A concrete class representing an operator. For more details, please see the c++ documentation.", no_init)

Legend:
Removed from v.3259  
changed lines
  Added in v.3554

  ViewVC Help
Powered by ViewVC 1.1.26