/[escript]/trunk/ripley/src/ripleycpp.cpp
ViewVC logotype

Diff of /trunk/ripley/src/ripleycpp.cpp

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

revision 3792 by caltinay, Wed Feb 1 06:16:25 2012 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 28  namespace ripley { Line 28  namespace ripley {
28  // These wrappers are required to make the shared pointers work through the  // These wrappers are required to make the shared pointers work through the
29  // Python wrapper  // Python wrapper
30    
31  escript::Domain_ptr _brick(int n0, int n1, int n2, const object& l0,  // The double for n? is just to keep python happy when people need to deal with
32    // trudiv
33    escript::Domain_ptr _brick(double _n0, double _n1, double _n2, const object& l0,
34                   const object& l1, const object& l2, int d0, int d1, int d2)                   const object& l1, const object& l2, int d0, int d1, int d2)
35  {  {
36        int n0=static_cast<int>(_n0), n1=static_cast<int>(_n1), n2=static_cast<int>(_n2);
37      double x0=0., x1=1., y0=0., y1=1., z0=0., z1=1.;      double x0=0., x1=1., y0=0., y1=1., z0=0., z1=1.;
38      if (extract<tuple>(l0).check()) {      if (extract<tuple>(l0).check()) {
39          tuple x=extract<tuple>(l0);          tuple x=extract<tuple>(l0);
# Line 72  escript::Domain_ptr _brick(int n0, int n Line 75  escript::Domain_ptr _brick(int n0, int n
75  }  }
76    
77  const int _q[]={0x61686969,0x746c4144,0x79616e43};  const int _q[]={0x61686969,0x746c4144,0x79616e43};
78  escript::Domain_ptr _rectangle(int n0, int n1, const object& l0,  escript::Domain_ptr _rectangle(double _n0, double _n1, const object& l0,
79                                 const object& l1, int d0, int d1)                                 const object& l1, int d0, int d1)
80  {  {
81        int n0=static_cast<int>(_n0), n1=static_cast<int>(_n1);
82      double x0=0., x1=1., y0=0., y1=1.;      double x0=0., x1=1., y0=0., y1=1.;
83      if (extract<tuple>(l0).check()) {      if (extract<tuple>(l0).check()) {
84          tuple x=extract<tuple>(l0);          tuple x=extract<tuple>(l0);

Legend:
Removed from v.3792  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26