/[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 1417 by gross, Mon Feb 25 04:45:48 2008 UTC revision 1426 by trankine, Wed Feb 27 06:12:15 2008 UTC
# Line 114  BOOST_PYTHON_MODULE(escriptcpp) Line 114  BOOST_PYTHON_MODULE(escriptcpp)
114    //    //
115    // Interface for FunctionSpace    // Interface for FunctionSpace
116    //    //
117    class_<escript::FunctionSpace>("FunctionSpace",init<>())    class_<escript::FunctionSpace> fs_definer("FunctionSpace",init<>());
118       .def("getDim",&escript::FunctionSpace::getDim)    fs_definer.def("getDim",&escript::FunctionSpace::getDim);
119       .def("getDomain",&escript::FunctionSpace::getDomain,return_internal_reference<>())    fs_definer.def("getDomain",&escript::FunctionSpace::getDomain,
120       .def("getX",&escript::FunctionSpace::getX)                   return_internal_reference<>());
121       .def("getNormal",&escript::FunctionSpace::getNormal)    fs_definer.def("getX",&escript::FunctionSpace::getX);
122       .def("getSize",&escript::FunctionSpace::getSize)    fs_definer.def("getNormal",&escript::FunctionSpace::getNormal);
123       .def("setTags",&escript::FunctionSpace::setTags)    fs_definer.def("getSize",&escript::FunctionSpace::getSize);
124       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)    fs_definer.def("setTags",&escript::FunctionSpace::setTags);
125       .def("__str__",&escript::FunctionSpace::toString)    fs_definer.def("getTagFromDataPointNo",
126       .def(self == self)                   &escript::FunctionSpace::getTagFromDataPointNo);
127       .def(self != self);  #ifdef DEBUG_PY_STRINGS
128      fs_definer.def("__str__",&escript::FunctionSpace::toPyString);
129    #else
130      fs_definer.def("__str__",
131                     &escript::FunctionSpace::toString,
132                     return_value_policy<copy_const_reference>());
133    #endif
134      fs_definer.def(self == self);
135      fs_definer.def(self != self);
136    //    //
137    // Interface for Data    // Interface for Data
138    //    //

Legend:
Removed from v.1417  
changed lines
  Added in v.1426

  ViewVC Help
Powered by ViewVC 1.1.26