/[escript]/trunk/bruce/src/Bruce/brucecpp.cpp
ViewVC logotype

Diff of /trunk/bruce/src/Bruce/brucecpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/esys2/bruce/src/Bruce/brucecpp.cpp revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC trunk/bruce/src/Bruce/brucecpp.cpp revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 61  BOOST_PYTHON_MODULE(brucecpp) Line 61  BOOST_PYTHON_MODULE(brucecpp)
61        arg("l0")=1.0,arg("l1")=1.0),        arg("l0")=1.0,arg("l1")=1.0),
62        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
63    
64    class_<bruce::Bruce, bases<escript::AbstractContinuousDomain> >("Bruce",init<>())    class_<bruce::Bruce, bases<escript::AbstractContinuousDomain> >
65          ("Bruce",init<>())
66        .def(init<const bruce::Bruce&>())        .def(init<const bruce::Bruce&>())
67        .def("getDescription",&bruce::Bruce::getDescription)        .def("getDescription",&bruce::Bruce::getDescription)
68        .def("isValidFunctionSpaceType",&bruce::Bruce::isValidFunctionSpaceType)        .def("isValidFunctionSpaceType",&bruce::Bruce::isValidFunctionSpaceType)
# Line 69  BOOST_PYTHON_MODULE(brucecpp) Line 70  BOOST_PYTHON_MODULE(brucecpp)
70        .def("getContinuousFunctionCode",&bruce::Bruce::getContinuousFunctionCode)        .def("getContinuousFunctionCode",&bruce::Bruce::getContinuousFunctionCode)
71        .def("getFunctionCode",&bruce::Bruce::getFunctionCode)        .def("getFunctionCode",&bruce::Bruce::getFunctionCode)
72        .def("getDim",&bruce::Bruce::getDim)        .def("getDim",&bruce::Bruce::getDim)
73        .def("getDataShape",&bruce::Bruce::getDataShape)        .def("getNumSamples",&bruce::Bruce::getNumSamples)
74          .def("getNumDataPointsPerSample",&bruce::Bruce::getNumDataPointsPerSample)
75        .def("getX",&bruce::Bruce::getX)        .def("getX",&bruce::Bruce::getX)
76        .def("setToX",&bruce::Bruce::setToX)        .def("setToX",&bruce::Bruce::setToX)
77        .def("getSize",&bruce::Bruce::getSize)        .def("getSize",&bruce::Bruce::getSize)
78        .def("setToSize",&bruce::Bruce::setToSize)        .def("setToSize",&bruce::Bruce::setToSize)
79          .def("getTagFromSampleNo",&bruce::Bruce::getTagFromSampleNo)
80          .def("getReferenceNoFromSampleNo",&bruce::Bruce::getReferenceNoFromSampleNo)
81          .def("saveVTK",&bruce::Bruce::saveVTK)
82        .def(self == other<object>())        .def(self == other<object>())
83        .def(self == self)        .def(self == self)
84        .def(self != other<object>())        .def(self != other<object>())

Legend:
Removed from v.153  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26