/[escript]/trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /trunk/escript/src/escriptcpp.cpp

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

revision 3506 by jfenwick, Wed May 11 01:59:45 2011 UTC revision 3522 by gross, Tue May 24 00:57:58 2011 UTC
# Line 173  args("solver", "preconditioner", "packag Line 173  args("solver", "preconditioner", "packag
173  args("solver", "preconditioner", "package", "symmetry"))  args("solver", "preconditioner", "package", "symmetry"))
174    
175        .def("addPDEToSystem",&escript::AbstractContinuousDomain::addPDEToSystem,        .def("addPDEToSystem",&escript::AbstractContinuousDomain::addPDEToSystem,
176  args("mat", "rhs","A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact"),  args("mat", "rhs","A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact", "d_dirac", "y_dirac"),
177  "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"
178  ":param mat:\n:type mat: `OperatorAdapter`\n:param rhs:\n:type rhs: `Data`\n"  ":param mat:\n:type mat: `OperatorAdapter`\n:param rhs:\n:type rhs: `Data`\n"
179  ":param A:\n:type A: `Data`\n"  ":param A:\n:type A: `Data`\n"
# Line 185  args("mat", "rhs","A", "B", "C", "D", "X Line 185  args("mat", "rhs","A", "B", "C", "D", "X
185  ":param d:\n:type d: `Data`\n"  ":param d:\n:type d: `Data`\n"
186  ":param d_contact:\n:type d_contact: `Data`\n"  ":param d_contact:\n:type d_contact: `Data`\n"
187  ":param y_contact:\n:type y_contact: `Data`\n"  ":param y_contact:\n:type y_contact: `Data`\n"
188    ":param d_dirac:\n:type d_dirac: `Data`\n"
189    ":param y_dirac:\n:type y_dirac: `Data`\n"
190  )  )
191        .def("addPDEToRHS",&escript::AbstractContinuousDomain::addPDEToRHS,        .def("addPDEToRHS",&escript::AbstractContinuousDomain::addPDEToRHS,
192  args("rhs", "X", "Y", "y", "y_contact"),  args("rhs", "X", "Y", "y", "y_contact", "d_dirac"),
193  "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"
194  ":param rhs:\n:type rhs: `Data`\n"  ":param rhs:\n:type rhs: `Data`\n"
195  ":param X:\n:type X: `Data`\n"  ":param X:\n:type X: `Data`\n"
196  ":param Y:\n:type Y: `Data`\n"  ":param Y:\n:type Y: `Data`\n"
197  ":param y:\n:type y: `Data`\n"  ":param y:\n:type y: `Data`\n"
198  ":param y_contact:\n:type y_contact: `Data`"  ":param y_contact:\n:type y_contact: `Data`"
199    ":param y_dirac:\n:type y_dirac: `Data`"
200  )  )
201        .def("addPDEToTransportProblem",&escript::AbstractContinuousDomain::addPDEToTransportProblem,        .def("addPDEToTransportProblem",&escript::AbstractContinuousDomain::addPDEToTransportProblem,
202  args( "tp", "source", "M", "A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact"),  args( "tp", "source", "M", "A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact", "d_dirac", "y_dirac"),
203  ":param tp:\n:type tp: `TransportProblemAdapter`\n"  ":param tp:\n:type tp: `TransportProblemAdapter`\n"
204  ":param source:\n:type source: `Data`\n"  ":param source:\n:type source: `Data`\n"
205  ":param M:\n:type M: `Data`\n"  ":param M:\n:type M: `Data`\n"
# Line 210  args( "tp", "source", "M", "A", "B", "C" Line 213  args( "tp", "source", "M", "A", "B", "C"
213  ":param y:\n:type y: `Data`\n"  ":param y:\n:type y: `Data`\n"
214  ":param d_contact:\n:type d_contact: `Data`\n"  ":param d_contact:\n:type d_contact: `Data`\n"
215  ":param y_contact:\n:type y_contact: `Data`\n"  ":param y_contact:\n:type y_contact: `Data`\n"
216    ":param d_dirac:\n:type d_dirac: `Data`\n"
217    ":param y_dirac:\n:type y_dirac: `Data`\n"
218  )  )
219        .def("newOperator",&escript::AbstractContinuousDomain::newSystemMatrix,        .def("newOperator",&escript::AbstractContinuousDomain::newSystemMatrix,
220  args("row_blocksize", "row_functionspace", "column_blocksize", "column_functionspace", "type"),  args("row_blocksize", "row_functionspace", "column_blocksize", "column_functionspace", "type"),
# Line 433  args("arg"), "assigns new location to th Line 438  args("arg"), "assigns new location to th
438      .def("__pow__",&escript::Data::powD)      .def("__pow__",&escript::Data::powD)
439      .def("__rpow__",&escript::Data::rpowO,"\nUsed by the python ** operator\n\n:rtype: `Data`")      .def("__rpow__",&escript::Data::rpowO,"\nUsed by the python ** operator\n\n:rtype: `Data`")
440      // following two functions implement the newer python / operator      // following two functions implement the newer python / operator
     .def("__truediv__",&escript::Data::truedivD)  
441      .def("__truediv__",&escript::Data::truedivO)      .def("__truediv__",&escript::Data::truedivO)
442        .def("__truediv__",&escript::Data::truedivD)
443        .def("__rtruediv__",&escript::Data::rtruedivO)
444      // NOTE:: The order of these declarations is important. Anything      // NOTE:: The order of these declarations is important. Anything
445      // declared before the generic declaration isn't found so the generic      // declared before the generic declaration isn't found so the generic
446      // version will be called.      // version will be called.
# Line 502  args("arg"), "assigns new location to th Line 508  args("arg"), "assigns new location to th
508  ":rtype: `FunctionSpace`");  ":rtype: `FunctionSpace`");
509    def("Solution",escript::solution, args("domain"), ":rtype: `FunctionSpace`");    def("Solution",escript::solution, args("domain"), ":rtype: `FunctionSpace`");
510    def("ReducedSolution",escript::reducedSolution, args("domain"), ":rtype: `FunctionSpace`");    def("ReducedSolution",escript::reducedSolution, args("domain"), ":rtype: `FunctionSpace`");
511    def("DiracDeltaFunction",escript::diracDeltaFunction, args("domain"), ":rtype: `FunctionSpace`");    def("DiracDeltaFunctions",escript::diracDeltaFunctions, args("domain"), ":rtype: `FunctionSpace`");
512    
513    
514    

Legend:
Removed from v.3506  
changed lines
  Added in v.3522

  ViewVC Help
Powered by ViewVC 1.1.26