/[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 2667 by jfenwick, Tue Sep 8 04:26:30 2009 UTC revision 2668 by gross, Thu Sep 17 04:04:09 2009 UTC
# Line 259  args("solver", "preconditioner", "packag Line 259  args("solver", "preconditioner", "packag
259      .def("setToZero",&escript::Data::setToZero,"After this call the object will store values of the same shape as before but all components will be zero.")      .def("setToZero",&escript::Data::setToZero,"After this call the object will store values of the same shape as before but all components will be zero.")
260      .def("interpolate",&escript::Data::interpolate,args("functionspace"),"Interpolate this object's values into a new functionspace.")      .def("interpolate",&escript::Data::interpolate,args("functionspace"),"Interpolate this object's values into a new functionspace.")
261      .def("interpolateTable", &escript::Data::interpolateFromTable2DP,      .def("interpolateTable", &escript::Data::interpolateFromTable2DP,
262  (arg("table"),arg("Amin"),arg("Astep"), arg("B"), arg("Bmin"), arg("Bstep"), arg("undef")=1.e50),  (arg("table"),arg("Amin"),arg("Astep"), arg("B"), arg("Bmin"), arg("Bstep"), arg("undef")=1.e50, arg("check_boundaries")=false),
263  "Creates a new Data object by interpolating using the source data (which are\n"  "Creates a new Data object by interpolating using the source data (which are\n"
264  "looked up in ``table``)\n``A`` must be the outer dimension on the table\n\n"  "looked up in ``table``)\n``A`` must be the outer dimension on the table\n\n"
265  ":param table: two dimensional collection of values\n"  ":param table: two dimensional collection of values\n"
# Line 270  args("solver", "preconditioner", "packag Line 270  args("solver", "preconditioner", "packag
270  ":type B: `Data`\n"  ":type B: `Data`\n"
271  ":param Bmin: The base of locations in table for 2nd dimension\n:type Bmin: float\n"  ":param Bmin: The base of locations in table for 2nd dimension\n:type Bmin: float\n"
272  ":param Bstep: size of gap between each item in the table for 2nd dimension\n:type Bstep: float\n"  ":param Bstep: size of gap between each item in the table for 2nd dimension\n:type Bstep: float\n"
273    ":param check_boundaries: if true table boundaries are checked.\n"
274  ":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``"  ":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``"
275  "\n:rtype: `Data`"  "\n:rtype: `Data`"
276  )  )
277      .def("interpolateTable", &escript::Data::interpolateFromTable1DP,      .def("interpolateTable", &escript::Data::interpolateFromTable1DP,
278  (arg("table"),arg("Amin"),arg("Astep"), arg("undef")=1.e50),  (arg("table"),arg("Amin"),arg("Astep"), arg("undef")=1.e50, arg("check_boundaries")=false),
279  "Creates a new Data object by interpolating using the source data (which are\n"  "Creates a new Data object by interpolating using the source data (which are\n"
280  "looked up in ``table``)\n\n"  "looked up in ``table``)\n\n"
281  ":param table: one dimensional collection of values\n"  ":param table: one dimensional collection of values\n"
282  ":param Amin: The base of locations in table\n:type Amin: float\n"  ":param Amin: The base of locations in table\n:type Amin: float\n"
283  ":param Astep: size of gap between each item in the table\n:type Astep: float\n"  ":param Astep: size of gap between each item in the table\n:type Astep: float\n"
284  ":param undef: upper bound on interpolated values\n:type undef: float\n"  ":param undef: upper bound on interpolated values\n:type undef: float\n"
285    ":param check_boundaries: if true table boundaries are checked.\n"
286  ":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``"  ":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``"
287  "\n:rtype: `Data`"  "\n:rtype: `Data`"
288  )  )

Legend:
Removed from v.2667  
changed lines
  Added in v.2668

  ViewVC Help
Powered by ViewVC 1.1.26