/[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 2626 by jfenwick, Mon Aug 24 00:48:31 2009 UTC revision 2628 by jfenwick, Tue Aug 25 03:50:00 2009 UTC
# Line 243  args("solver", "preconditioner", "packag Line 243  args("solver", "preconditioner", "packag
243  "\n:param dataPointNo: datapoint to access\n:type dataPointNo: int")  "\n:param dataPointNo: datapoint to access\n:type dataPointNo: int")
244      .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.")
245      .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.")
246        .def("interpolateTable", &escript::Data::interpolateFromTable,
247    args("table","Amin","Astep","undef", "B", "Bmin", "Bstep"),
248    "Creates a new Data object by interpolating using the source data (which are\n"
249    "looked up in ``table``)\n\n"
250    ":param table: two dimensional collection of values\n"
251    ":param Amin: The base of locations in table\n:type Amin: float\n"
252    ":param Astep: size of gap between each item in the table\n:type Astep: float\n"
253    ":param undef: upper bound on interpolated values\n:type undef: float\n"
254    ":param B: Scalar representing the second coordinate to be mapped into the table\n"
255    ":type B: `Data`\n"
256    ":param Bmin: The base of locations in table for 2nd dimension\n:type Bmin: float\n"
257    ":param Bstep: size of gap between each item in the table for 2nd dimension\n:type Bstep: float\n"
258    ":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``"
259    "\n:rtype: `Data`"
260    )
261    
262      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)
263      .def("maxGlobalDataPoint",&escript::Data::maxGlobalDataPoint)      .def("maxGlobalDataPoint",&escript::Data::maxGlobalDataPoint)
264      .def("saveDX",&escript::Data::saveDX,args("fileName"),"Save the object in DX format.\n\n"      .def("saveDX",&escript::Data::saveDX,args("fileName"),"Save the object in DX format.\n\n"

Legend:
Removed from v.2626  
changed lines
  Added in v.2628

  ViewVC Help
Powered by ViewVC 1.1.26