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

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

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

revision 121 by jgs, Fri May 6 04:26:16 2005 UTC revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC
# Line 16  Line 16 
16  ******************************************************************************/  ******************************************************************************/
17    
18  #include "escript/Data/Data.h"  #include "escript/Data/Data.h"
19    #include "escript/Data/DataVariable.h"
20  #include "escript/Data/FunctionSpace.h"  #include "escript/Data/FunctionSpace.h"
21  #include "escript/Data/FunctionSpaceFactory.h"  #include "escript/Data/FunctionSpaceFactory.h"
22  #include "escript/Data/DataFactory.h"  #include "escript/Data/DataFactory.h"
# Line 41  using namespace boost::python; Line 42  using namespace boost::python;
42   *   *
43   * - \ref finley   * - \ref finley
44   *   *
45     * - <a href=http://www.esscc.uq.edu.au/~cochrane/esys_python_doc/html/index.html>Python module documentation (doxygen generated)</a>
46     *
47     * - <a href=http://www.esscc.uq.edu.au/~cochrane/esys_python_doc/index.html>Python module documentation (epydoc generated)</a>
48     *
49   */   */
50    
51  /*! \page escript Escript  /*! \page escript Escript
# Line 90  BOOST_PYTHON_MODULE(escriptcpp) Line 95  BOOST_PYTHON_MODULE(escriptcpp)
95       .def("getX",&escript::FunctionSpace::getX)       .def("getX",&escript::FunctionSpace::getX)
96       .def("getNormal",&escript::FunctionSpace::getNormal)       .def("getNormal",&escript::FunctionSpace::getNormal)
97       .def("getSize",&escript::FunctionSpace::getSize)       .def("getSize",&escript::FunctionSpace::getSize)
98       .def("toString",&escript::FunctionSpace::toString)       .def("__str__",&escript::FunctionSpace::toString)
99       .def(self == self)       .def(self == self)
100       .def(self != self);       .def(self != self);
101    
102    //    //
103      // Interface for DataVariable
104      //
105      class_<escript::DataVariable>("DataVariable",init<>())
106        .def(init<escript::Data*>())
107        .def("evaluate",&escript::DataVariable::evaluate)
108        .def("sum",&escript::DataVariable::sum)
109        .def("diff",&escript::DataVariable::diff);
110    
111      //
112    // Interface for Data    // Interface for Data
113    //    //
114    class_<escript::Data>("Data",init<>())    class_<escript::Data>("Data",init<>())
# Line 118  BOOST_PYTHON_MODULE(escriptcpp) Line 132  BOOST_PYTHON_MODULE(escriptcpp)
132      .def("getRefValue",&escript::Data::getRefValue)      .def("getRefValue",&escript::Data::getRefValue)
133      .def("expand",&escript::Data::expand)      .def("expand",&escript::Data::expand)
134      .def("tag",&escript::Data::tag)      .def("tag",&escript::Data::tag)
135        .def("copy",&escript::Data::copy)
136    
137      .def("saveDX",&escript::Data::saveDX)      .def("saveDX",&escript::Data::saveDX)
138      .def("saveVTK",&escript::Data::saveVTK)      .def("saveVTK",&escript::Data::saveVTK)
139      .def("wherePositive",&escript::Data::wherePositive)      .def("wherePositive",&escript::Data::wherePositive)
# Line 133  BOOST_PYTHON_MODULE(escriptcpp) Line 149  BOOST_PYTHON_MODULE(escriptcpp)
149      .def("convertToNumArray",&escript::Data::convertToNumArray)      .def("convertToNumArray",&escript::Data::convertToNumArray)
150      .def("convertToNumArrayFromSampleNo",&escript::Data::convertToNumArrayFromSampleNo)      .def("convertToNumArrayFromSampleNo",&escript::Data::convertToNumArrayFromSampleNo)
151      .def("convertToNumArrayFromDPNo",&escript::Data::convertToNumArrayFromDPNo)      .def("convertToNumArrayFromDPNo",&escript::Data::convertToNumArrayFromDPNo)
152        .def("fillFromNumArray",&escript::Data::fillFromNumArray)
153      .def("archiveData",&escript::Data::archiveData)      .def("archiveData",&escript::Data::archiveData)
154      .def("extractData",&escript::Data::extractData)      .def("extractData",&escript::Data::extractData)
155      .def("integrate",&escript::Data::integrate)      .def("integrate",&escript::Data::integrate)
# Line 240  BOOST_PYTHON_MODULE(escriptcpp) Line 257  BOOST_PYTHON_MODULE(escriptcpp)
257       .def("solve",&escript::AbstractSystemMatrix::solve)       .def("solve",&escript::AbstractSystemMatrix::solve)
258       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)
259       .def("saveMM",&escript::AbstractSystemMatrix::saveMM)       .def("saveMM",&escript::AbstractSystemMatrix::saveMM)
260         .def("saveHB",&escript::AbstractSystemMatrix::saveHB)
261       .def("setValue",&escript::AbstractSystemMatrix::setValue)       .def("setValue",&escript::AbstractSystemMatrix::setValue)
262       .def("resetSolver",&escript::AbstractSystemMatrix::resetSolver)       .def("resetSolver",&escript::AbstractSystemMatrix::resetSolver)
263       .def(self*other<escript::Data>());       .def(self*other<escript::Data>());

Legend:
Removed from v.121  
changed lines
  Added in v.147

  ViewVC Help
Powered by ViewVC 1.1.26