105 |
// |
// |
106 |
// Interface for FunctionSpace |
// Interface for FunctionSpace |
107 |
// |
// |
108 |
class_<escript::FunctionSpace>("FunctionSpace",init<>()) |
class_<escript::FunctionSpace> fs_definer("FunctionSpace",init<>()); |
109 |
.def("getDim",&escript::FunctionSpace::getDim) |
fs_definer.def("getDim",&escript::FunctionSpace::getDim); |
110 |
.def("getDomain",&escript::FunctionSpace::getDomain,return_internal_reference<>()) |
fs_definer.def("getDomain",&escript::FunctionSpace::getDomain, |
111 |
.def("getX",&escript::FunctionSpace::getX) |
return_internal_reference<>()); |
112 |
.def("getNormal",&escript::FunctionSpace::getNormal) |
fs_definer.def("getX",&escript::FunctionSpace::getX); |
113 |
.def("getSize",&escript::FunctionSpace::getSize) |
fs_definer.def("getNormal",&escript::FunctionSpace::getNormal); |
114 |
.def("setTags",&escript::FunctionSpace::setTags) |
fs_definer.def("getSize",&escript::FunctionSpace::getSize); |
115 |
.def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo) |
fs_definer.def("setTags",&escript::FunctionSpace::setTags); |
116 |
.def("__str__",&escript::FunctionSpace::toString,return_value_policy<copy_const_reference>()) |
fs_definer.def("getTagFromDataPointNo", |
117 |
.def(self == self) |
&escript::FunctionSpace::getTagFromDataPointNo); |
118 |
.def(self != self); |
#ifdef DEBUG_PY_STRINGS |
119 |
|
fs_definer.def("__str__",&escript::FunctionSpace::toPyString); |
120 |
|
#else |
121 |
|
fs_definer.def("__str__", |
122 |
|
&escript::FunctionSpace::toString, |
123 |
|
return_value_policy<copy_const_reference>()); |
124 |
|
#endif |
125 |
|
fs_definer.def(self == self); |
126 |
|
fs_definer.def(self != self); |
127 |
// |
// |
128 |
// Interface for Data |
// Interface for Data |
129 |
// |
// |