/[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 1059 by gross, Fri Mar 23 11:01: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)
# Line 241  BOOST_PYTHON_MODULE(escriptcpp) Line 243  BOOST_PYTHON_MODULE(escriptcpp)
243    // Factory methods for function space    // Factory methods for function space
244    //    //
245    def("ContinuousFunction",escript::continuousFunction);    def("ContinuousFunction",escript::continuousFunction);
246      def("ReducedContinuousFunction",escript::reducedContinuousFunction);
247    def("Function",escript::function);    def("Function",escript::function);
248    def("ReducedFunction",escript::function);    def("ReducedFunction",escript::reducedFunction);
249    def("FunctionOnBoundary",escript::functionOnBoundary);    def("FunctionOnBoundary",escript::functionOnBoundary);
250    def("ReducedFunctionOnBoundary",escript::reducedfunctionOnBoundary);    def("ReducedFunctionOnBoundary",escript::reducedFunctionOnBoundary);
251    def("FunctionOnContactZero",escript::functionOnContactZero);    def("FunctionOnContactZero",escript::functionOnContactZero);
252    def("ReducedFunctionOnContactZero",escript::reducedfunctionOnContactZero);    def("ReducedFunctionOnContactZero",escript::reducedFunctionOnContactZero);
253    def("FunctionOnContactOne",escript::functionOnContactOne);    def("FunctionOnContactOne",escript::functionOnContactOne);
254    def("ReducedFunctionOnContactOne",escript::reducedfunctionOnContactOne);    def("ReducedFunctionOnContactOne",escript::reducedFunctionOnContactOne);
255    def("Solution",escript::solution);    def("Solution",escript::solution);
256    def("ReducedSolution",escript::reducedSolution);    def("ReducedSolution",escript::reducedSolution);
257    def("DiracDeltaFunction",escript::diracDeltaFunction);    def("DiracDeltaFunction",escript::diracDeltaFunction);

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

  ViewVC Help
Powered by ViewVC 1.1.26