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

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

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

revision 150 by jgs, Thu Sep 15 03:44:45 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 52  BOOST_PYTHON_MODULE(brucecpp) Line 52  BOOST_PYTHON_MODULE(brucecpp)
52    // return pointers.    // return pointers.
53    
54    def ("Brick",bruce::brick,    def ("Brick",bruce::brick,
55        (arg("n0")=1,arg("n1")=1,arg("n2")=1,        (arg("n0")=2,arg("n1")=2,arg("n2")=2,
56        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0),        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0),
57        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
58    
59    def ("Rectangle",bruce::rectangle,    def ("Rectangle",bruce::rectangle,
60        (arg("n0")=1,arg("n1")=1,        (arg("n0")=2,arg("n1")=2,
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> >("Bruce",init<>())
65        .def(init<const bruce::Bruce&>())        .def(init<const bruce::Bruce&>())
66          .def("getDescription",&bruce::Bruce::getDescription)
67          .def("isValidFunctionSpaceType",&bruce::Bruce::isValidFunctionSpaceType)
68          .def("functionSpaceTypeAsString",&bruce::Bruce::functionSpaceTypeAsString)
69          .def("getContinuousFunctionCode",&bruce::Bruce::getContinuousFunctionCode)
70          .def("getFunctionCode",&bruce::Bruce::getFunctionCode)
71        .def("getDim",&bruce::Bruce::getDim)        .def("getDim",&bruce::Bruce::getDim)
72          .def("getDataShape",&bruce::Bruce::getDataShape)
73        .def("getX",&bruce::Bruce::getX)        .def("getX",&bruce::Bruce::getX)
74        .def("getSize",&bruce::Bruce::getSize);        .def("setToX",&bruce::Bruce::setToX)
75          .def("getSize",&bruce::Bruce::getSize)
76          .def("setToSize",&bruce::Bruce::setToSize)
77          .def(self == other<object>())
78          .def(self == self)
79          .def(self != other<object>())
80          .def(self != self);
81    
82  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26