/[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 1062 by gross, Mon Mar 26 06:17:53 2007 UTC revision 1137 by gross, Thu May 10 08:11:31 2007 UTC
# Line 77  BOOST_PYTHON_MODULE(escriptcpp) Line 77  BOOST_PYTHON_MODULE(escriptcpp)
77    // Interface for AbstractDomain    // Interface for AbstractDomain
78    //    //
79    class_<escript::AbstractDomain>("Domain",no_init)    class_<escript::AbstractDomain>("Domain",no_init)
80         .def("__str__",&escript::AbstractDomain::str)
81       .def("setTagMap",&escript::AbstractDomain::setTagMap)       .def("setTagMap",&escript::AbstractDomain::setTagMap)
82       .def("getTag",&escript::AbstractDomain::getTag)       .def("getTag",&escript::AbstractDomain::getTag)
83       .def("isValidTagName",&escript::AbstractDomain::isValidTagName)       .def("isValidTagName",&escript::AbstractDomain::isValidTagName)
# Line 106  BOOST_PYTHON_MODULE(escriptcpp) Line 107  BOOST_PYTHON_MODULE(escriptcpp)
107       .def("getSize",&escript::FunctionSpace::getSize)       .def("getSize",&escript::FunctionSpace::getSize)
108       .def("setTags",&escript::FunctionSpace::setTags)       .def("setTags",&escript::FunctionSpace::setTags)
109       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)
110       .def("__str__",&escript::FunctionSpace::toString)       .def("__str__",&escript::FunctionSpace::str)
111       .def(self == self)       .def(self == self)
112       .def(self != self);       .def(self != self);
113    //    //
# Line 121  BOOST_PYTHON_MODULE(escriptcpp) Line 122  BOOST_PYTHON_MODULE(escriptcpp)
122      .def(init<const escript::Data&>())      .def(init<const escript::Data&>())
123      // Note for Lutz, Need to specify the call policy in order to return a      // Note for Lutz, Need to specify the call policy in order to return a
124      // reference. In this case return_internal_reference.      // reference. In this case return_internal_reference.
125      .def("__str__",&escript::Data::toString)      .def("__str__",&escript::Data::str)
126      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())
127      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())
128      .def("isEmpty",&escript::Data::isEmpty)      .def("isEmpty",&escript::Data::isEmpty)
# Line 142  BOOST_PYTHON_MODULE(escriptcpp) Line 143  BOOST_PYTHON_MODULE(escriptcpp)
143      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)
144      .def("getValueOfDataPoint",&escript::Data::getValueOfDataPoint)      .def("getValueOfDataPoint",&escript::Data::getValueOfDataPoint)
145      .def("getValueOfGlobalDataPoint",&escript::Data::getValueOfGlobalDataPoint)      .def("getValueOfGlobalDataPoint",&escript::Data::getValueOfGlobalDataPoint)
146        .def("setToZero",&escript::Data::setToZero)
147      .def("interpolate",&escript::Data::interpolate)      .def("interpolate",&escript::Data::interpolate)
148      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)
149      .def("saveDX",&escript::Data::saveDX)      .def("saveDX",&escript::Data::saveDX)

Legend:
Removed from v.1062  
changed lines
  Added in v.1137

  ViewVC Help
Powered by ViewVC 1.1.26