/[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 148 by jgs, Tue Aug 23 01:24:31 2005 UTC revision 149 by jgs, Thu Sep 1 03:31:39 2005 UTC
# Line 95  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("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)
99       .def("__str__",&escript::FunctionSpace::toString)       .def("__str__",&escript::FunctionSpace::toString)
100       .def(self == self)       .def(self == self)
101       .def(self != self);       .def(self != self);
# Line 111  BOOST_PYTHON_MODULE(escriptcpp) Line 112  BOOST_PYTHON_MODULE(escriptcpp)
112    //    //
113    // Interface for Data    // Interface for Data
114    //    //
115    class_<escript::Data>("Data",init<>())    class_<escript::Data>("Data","TEST DOCUMENTATION",init<>())
116      // various constructors for Data objects      // various constructors for Data objects
117      .def(init<const numeric::array&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))      .def(init<const numeric::array&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))
118      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))
# Line 149  BOOST_PYTHON_MODULE(escriptcpp) Line 150  BOOST_PYTHON_MODULE(escriptcpp)
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)      .def("fillFromNumArray",&escript::Data::fillFromNumArray)
153        .def("getTagNumber",&escript::Data::getTagNumber)
154      .def("archiveData",&escript::Data::archiveData)      .def("archiveData",&escript::Data::archiveData)
155      .def("extractData",&escript::Data::extractData)      .def("extractData",&escript::Data::extractData)
156      .def("integrate",&escript::Data::integrate)      .def("integrate",&escript::Data::integrate)
# Line 257  BOOST_PYTHON_MODULE(escriptcpp) Line 259  BOOST_PYTHON_MODULE(escriptcpp)
259       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)
260       .def("saveMM",&escript::AbstractSystemMatrix::saveMM)       .def("saveMM",&escript::AbstractSystemMatrix::saveMM)
261       .def("saveHB",&escript::AbstractSystemMatrix::saveHB)       .def("saveHB",&escript::AbstractSystemMatrix::saveHB)
262       .def("setValue",&escript::AbstractSystemMatrix::setValue)       .def("resetValues",&escript::AbstractSystemMatrix::resetValues)
      .def("resetSolver",&escript::AbstractSystemMatrix::resetSolver)  
263       .def(self*other<escript::Data>());       .def(self*other<escript::Data>());
264    
265    //    //

Legend:
Removed from v.148  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.26