/[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

trunk/escript/src/Data/escriptcpp.cpp revision 391 by gross, Tue Dec 20 05:36:50 2005 UTC trunk/escript/src/escriptcpp.cpp revision 2533 by gross, Wed Jul 15 05:57:01 2009 UTC
# Line 1  Line 1 
1  //$Id$  
2  /*=============================================================================  /*******************************************************
3    *
4   ******************************************************************************  * Copyright (c) 2003-2008 by University of Queensland
5   *                                                                            *  * Earth Systems Science Computational Center (ESSCC)
6   *       COPYRIGHT ACcESS 2004 -  All Rights Reserved                         *  * http://www.uq.edu.au/esscc
7   *                                                                            *  *
8   * This software is the property of ACcESS.  No part of this code             *  * Primary Business: Queensland, Australia
9   * may be copied in any form or by any means without the expressed written    *  * Licensed under the Open Software License version 3.0
10   * consent of ACcESS.  Copying, use or modification of this software          *  * http://www.opensource.org/licenses/osl-3.0.php
11   * by any unauthorised person is illegal unless that                          *  *
12   * person has a software license agreement with ACcESS.                       *  *******************************************************/
13   *                                                                            *  
14   ******************************************************************************  
15    #include "Data.h"
16  ******************************************************************************/  #include "FunctionSpace.h"
17    #include "FunctionSpaceFactory.h"
18  #include "escript/Data/Data.h"  #include "DataFactory.h"
19  #include "escript/Data/DataVariable.h"  #include "AbstractContinuousDomain.h"
20  #include "escript/Data/FunctionSpace.h"  #include "AbstractDomain.h"
21  #include "escript/Data/FunctionSpaceFactory.h"  #include "Utils.h"
22  #include "escript/Data/DataFactory.h"  #include "AbstractSystemMatrix.h"
23  #include "escript/Data/AbstractContinuousDomain.h"  #include "AbstractTransportProblem.h"
24  #include "escript/Data/AbstractDomain.h"  #include "DataVector.h"
25  #include "escript/Data/Utils.h"  #include "paso/Paso_MPI.h"
26    #include "EscriptParams.h"
27    #include "TestDomain.h"
28    
29    
30    extern "C" {
31    #include "esysUtils/blocktimer.h"
32    }
33    
34  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
35    
36    #include <boost/version.hpp>
37  #include <boost/python.hpp>  #include <boost/python.hpp>
38  #include <boost/python/module.hpp>  #include <boost/python/module.hpp>
39  #include <boost/python/def.hpp>  #include <boost/python/def.hpp>
40  #include <boost/python/object.hpp>  #include <boost/python/object.hpp>
41  #include <boost/python/tuple.hpp>  #include <boost/python/tuple.hpp>
42  #include <boost/python/numeric.hpp>  #include <boost/python/numeric.hpp>
43    #include <boost/smart_ptr.hpp>
44    #include <boost/version.hpp>
45    
46  using namespace boost::python;  using namespace boost::python;
47    
48  /*! \mainpage Esys Documentation  /*! \mainpage Esys Documentation
49   *   *
50   * \version 1.0.0   * \version 2.9.0
51   *   *
52   * - \ref escript   * - \ref escript
53   *   *
# Line 44  using namespace boost::python; Line 55  using namespace boost::python;
55   *   *
56   * - \ref finley   * - \ref finley
57   *   *
58   * - <a href=http://iservo.edu.au/esys/epydoc/index.html>Python module documentation (epydoc generated)</a>   * - <a href="../../epydoc/index.html">Python module documentation (epydoc generated)</a>
59   *   *
60   */   */
61    
# Line 52  using namespace boost::python; Line 63  using namespace boost::python;
63   * Escript is the python module that contains the interfaces   * Escript is the python module that contains the interfaces
64   * to the C++ side of escript.   * to the C++ side of escript.
65   *   *
66   * \version 1.0.0   *
67   *   *
68   * \section class_desc Class Description:   * \section class_desc Class Description:
69   * Data   * Data
# Line 70  using namespace boost::python; Line 81  using namespace boost::python;
81    
82  BOOST_PYTHON_MODULE(escriptcpp)  BOOST_PYTHON_MODULE(escriptcpp)
83  {  {
84    // This feature was added in boost v1.34
85    #if ((BOOST_VERSION/100)%1000 > 34) || (BOOST_VERSION/100000 >1)
86    //#if ((BOOST_VERSION/100)%1000) > 34
87      // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures
88      #if BOOST_VERSION > 103399
89      docstring_options docopt(true, true, false);
90      #endif
91    #endif
92    
93    def("setNumberOfThreads",escript::setNumberOfThreads);    def("setNumberOfThreads",escript::setNumberOfThreads);
94    def("getNumberOfThreads",escript::getNumberOfThreads);    def("getNumberOfThreads",escript::getNumberOfThreads);
95      def("releaseUnusedMemory",escript::releaseUnusedMemory);
96      def("blocktimer_initialize",blocktimer_initialize);
97      def("blocktimer_reportSortByName",blocktimer_reportSortByName);
98      def("blocktimer_reportSortByTime",blocktimer_reportSortByTime);
99      def("blocktimer_increment",blocktimer_increment);
100      def("blocktimer_time",blocktimer_time);
101      def("getVersion",escript::getSvnVersion);
102      def("printParallelThreadCounts",escript::printParallelThreadCnt);
103      def("getMPISizeWorld",escript::getMPISizeWorld);
104      def("getMPIRankWorld",escript::getMPIRankWorld);
105      def("MPIBarrierWorld",escript::MPIBarrierWorld);
106      def("getMPIWorldMax",escript::getMPIWorldMax);
107      def("getMachinePrecision",escript::getMachinePrecision);
108      def("getMaxFloat",escript::getMaxFloat);
109    //    //
110    // Interface for AbstractDomain    // Interface for AbstractDomain
111    //    //
112    class_<escript::AbstractDomain>("Domain",no_init)    class_<escript::AbstractDomain, escript::Domain_ptr>("Domain","Base class for all domains.",no_init)
113         .def("getStatus",&escript::AbstractDomain::getStatus)
114         .def("setTagMap",&escript::AbstractDomain::setTagMap)
115         .def("getTag",&escript::AbstractDomain::getTag)
116         .def("isValidTagName",&escript::AbstractDomain::isValidTagName)
117         .def("showTagNames",&escript::AbstractDomain::showTagNames)
118       .def("getX",&escript::AbstractDomain::getX)       .def("getX",&escript::AbstractDomain::getX)
119         .def("getDim",&escript::AbstractDomain::getDim)
120       .def("getNormal",&escript::AbstractDomain::getNormal)       .def("getNormal",&escript::AbstractDomain::getNormal)
121       .def("getSize",&escript::AbstractDomain::getSize)       .def("getSize",&escript::AbstractDomain::getSize)
122       .def("saveVTK",&escript::AbstractDomain::saveVTK)       .def("saveVTK",&escript::AbstractDomain::saveVTK)
123         .def("dump",&escript::AbstractDomain::dump)
124       .def("saveDX",&escript::AbstractDomain::saveDX)       .def("saveDX",&escript::AbstractDomain::saveDX)
125         .def("getMPISize",&escript::AbstractDomain::getMPISize)
126         .def("getMPIRank",&escript::AbstractDomain::getMPIRank)
127         .def("MPIBarrier",&escript::AbstractDomain::MPIBarrier)
128         .def("onMasterProcessor",&escript::AbstractDomain::onMasterProcessor)
129    
130       .def(self == self)       .def(self == self)
131       .def(self != self);       .def(self != self);
132    
133    //    //
134    // Interface for AbstractContinuousDomain    // Interface for AbstractContinuousDomain
135    //    //
136    class_<escript::AbstractContinuousDomain, bases<escript::AbstractDomain> >("ContinuousDomain",no_init)    class_<escript::AbstractContinuousDomain, bases<escript::AbstractDomain> >("ContinuousDomain","Class representing continuous domains",no_init)
137         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId);         .def("getSystemMatrixTypeId",&escript::AbstractContinuousDomain::getSystemMatrixTypeId)
138           .def("getTransportTypeId",&escript::AbstractContinuousDomain::getTransportTypeId);
139    
140    
141    //    //
142    // Interface for FunctionSpace    // Interface for TestDomain
143    //    //
144    class_<escript::FunctionSpace>("FunctionSpace",init<>())    class_ <escript::TestDomain, bases<escript::AbstractDomain> >("TestDomain", "Test Class for domains with no structure. May be removed from future releases without notice.", init<int,int>());
145       .def("getDim",&escript::FunctionSpace::getDim)  
146       .def("getDomain",&escript::FunctionSpace::getDomain,return_internal_reference<>())    // This is the only python visible way to get a TestDomain
147       .def("getX",&escript::FunctionSpace::getX)    def("getTestDomainFunctionSpace",&escript::getTestDomainFunctionSpace, "For testing only. May be removed without notice.");
      .def("getNormal",&escript::FunctionSpace::getNormal)  
      .def("getSize",&escript::FunctionSpace::getSize)  
      .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)  
      .def("__str__",&escript::FunctionSpace::toString)  
      .def(self == self)  
      .def(self != self);  
148    
149    //    //
150    // Interface for DataVariable    // Interface for FunctionSpace
151    //    //
152    class_<escript::DataVariable>("DataVariable",init<>())    class_<escript::FunctionSpace> fs_definer("FunctionSpace","",init<>());   // Doco goes in the empty string param
153      .def(init<escript::Data*>())    fs_definer.def("getDim",&escript::FunctionSpace::getDim);
154      .def("evaluate",&escript::DataVariable::evaluate)  //   fs_definer.def("getDomain",&escript::FunctionSpace::getDomain,
155      .def("sum",&escript::DataVariable::sum)  //                  return_internal_reference<>());
156      .def("diff",&escript::DataVariable::diff);    fs_definer.def("getDomain",&escript::FunctionSpace::getDomainPython);
157      fs_definer.def("getX",&escript::FunctionSpace::getX);
158      fs_definer.def("getNormal",&escript::FunctionSpace::getNormal);
159      fs_definer.def("getSize",&escript::FunctionSpace::getSize);
160      fs_definer.def("setTags",&escript::FunctionSpace::setTags);
161      fs_definer.def("getTagFromDataPointNo",
162                     &escript::FunctionSpace::getTagFromDataPointNo);
163      fs_definer.def("getReferenceIDFromDataPointNo", &escript::FunctionSpace::getReferenceIDFromDataPointNo);
164      fs_definer.def("getListOfTags",&escript::FunctionSpace::getListOfTags);
165      fs_definer.def("__str__", &escript::FunctionSpace::toString);
166      fs_definer.def(self == self);
167      fs_definer.def(self != self);
168    //    //
169    // Interface for Data    // Interface for Data
170    //    //
171    class_<escript::Data>("Data","TEST DOCUMENTATION",init<>())    class_<escript::Data>("Data","Represents a collection of datapoints. It is used to store the values of a function. For more details please consult the c++ class documentation.",init<>() )
172      // various constructors for Data objects      // various constructors for Data objects
     .def(init<const numeric::array&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))  
173      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))
174      .def(init<const double, const tuple&, optional<const escript::FunctionSpace&, bool> >(args("value","shape","what","expand")))      .def(init<const double, const tuple&, optional<const escript::FunctionSpace&, bool> >(args("value","shape","what","expand")))
175      .def(init<const escript::Data&, const escript::FunctionSpace&>(args("value","what")))      .def(init<const escript::Data&, const escript::FunctionSpace&>(args("value","what")))
# Line 127  BOOST_PYTHON_MODULE(escriptcpp) Line 177  BOOST_PYTHON_MODULE(escriptcpp)
177      // Note for Lutz, Need to specify the call policy in order to return a      // Note for Lutz, Need to specify the call policy in order to return a
178      // reference. In this case return_internal_reference.      // reference. In this case return_internal_reference.
179      .def("__str__",&escript::Data::toString)      .def("__str__",&escript::Data::toString)
180      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())      .def("getDomain",&escript::Data::getDomainPython)
181      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_value_policy<copy_const_reference>())
182      .def("isEmpty",&escript::Data::isEmpty)      .def("isEmpty",&escript::Data::isEmpty)
183        .def("isProtected",&escript::Data::isProtected)
184        .def("setProtection",&escript::Data::setProtection)
185      .def("getShape",&escript::Data::getShapeTuple)      .def("getShape",&escript::Data::getShapeTuple)
186      .def("getRank",&escript::Data::getDataPointRank)      .def("getRank",&escript::Data::getDataPointRank)
187        .def("dump",&escript::Data::dump)
188        .def("toListOfTuples",&escript::Data::toListOfTuples, (arg("scalarastuple")=true))
189      .def("copyWithMask",&escript::Data::copyWithMask)      .def("copyWithMask",&escript::Data::copyWithMask)
190      .def("setTaggedValue",&escript::Data::setTaggedValue)      .def("setTaggedValue",&escript::Data::setTaggedValue)
191      .def("setRefValue",&escript::Data::setRefValue)      .def("setTaggedValue",&escript::Data::setTaggedValueByName)
192      .def("getRefValue",&escript::Data::getRefValue)      .def("getNumberOfDataPoints",&escript::Data::getNumDataPoints)
193        .def("isExpanded",&escript::Data::isExpanded)
194        .def("isTagged",&escript::Data::isTagged)
195        .def("isConstant",&escript::Data::isConstant)
196        .def("isLazy",&escript::Data::isLazy)
197        .def("isReady",&escript::Data::isReady)
198      .def("expand",&escript::Data::expand)      .def("expand",&escript::Data::expand)
199      .def("tag",&escript::Data::tag)      .def("tag",&escript::Data::tag)
200        .def("resolve",&escript::Data::resolve)
201      .def("copy",&escript::Data::copy)      .def("copy",&escript::Data::copy)
202      .def("convertToNumArray",&escript::Data::convertToNumArray)      .def("copy",&escript::Data::copySelf)
203      .def("convertToNumArrayFromSampleNo",&escript::Data::convertToNumArrayFromSampleNo)      .def("delay",&escript::Data::delay)
204      .def("convertToNumArrayFromDPNo",&escript::Data::convertToNumArrayFromDPNo)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToPyObject)
205      .def("fillFromNumArray",&escript::Data::fillFromNumArray)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToArray)
206        .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)
207        .def("getTupleForDataPoint",&escript::Data::getValueOfDataPointAsTuple)
208        .def("getTupleForGlobalDataPoint",&escript::Data::getValueOfGlobalDataPointAsTuple)
209        .def("setToZero",&escript::Data::setToZero)
210      .def("interpolate",&escript::Data::interpolate)      .def("interpolate",&escript::Data::interpolate)
211      .def("mindp",&escript::Data::mindp)      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)
212        .def("maxGlobalDataPoint",&escript::Data::maxGlobalDataPoint)
213      .def("saveDX",&escript::Data::saveDX)      .def("saveDX",&escript::Data::saveDX)
214      .def("saveVTK",&escript::Data::saveVTK)      .def("saveVTK",&escript::Data::saveVTK)
215      .def("getTagNumber",&escript::Data::getTagNumber)      .def("getTagNumber",&escript::Data::getTagNumber)
     .def("archiveData",&escript::Data::archiveData)  
     .def("extractData",&escript::Data::extractData)  
216      // Unary functions for Data      // Unary functions for Data
217      .def("_interpolate",&escript::Data::interpolate)      .def("_interpolate",&escript::Data::interpolate)
218      .def("_grad",&escript::Data::gradOn)      .def("_grad",&escript::Data::gradOn)
# Line 163  BOOST_PYTHON_MODULE(escriptcpp) Line 225  BOOST_PYTHON_MODULE(escriptcpp)
225      .def("_whereNegative",&escript::Data::whereNegative)      .def("_whereNegative",&escript::Data::whereNegative)
226      .def("_whereNonNegative",&escript::Data::whereNonNegative)      .def("_whereNonNegative",&escript::Data::whereNonNegative)
227      .def("_whereNonPositive",&escript::Data::whereNonPositive)      .def("_whereNonPositive",&escript::Data::whereNonPositive)
228      .def("_whereZero",&escript::Data::whereZero)      .def("_whereZero",&escript::Data::whereZero,(arg("tol")=0.0))
229      .def("_whereNonZero",&escript::Data::whereNonZero)      .def("_whereNonZero",&escript::Data::whereNonZero,(arg("tol")=0.0))
230        .def("_erf",&escript::Data::erf)
231      .def("_sin",&escript::Data::sin)      .def("_sin",&escript::Data::sin)
232      .def("_cos",&escript::Data::cos)      .def("_cos",&escript::Data::cos)
233      .def("_tan",&escript::Data::tan)      .def("_tan",&escript::Data::tan)
# Line 182  BOOST_PYTHON_MODULE(escriptcpp) Line 245  BOOST_PYTHON_MODULE(escriptcpp)
245      .def("_log10",&escript::Data::log10)      .def("_log10",&escript::Data::log10)
246      .def("_log",&escript::Data::log)      .def("_log",&escript::Data::log)
247      .def("_sign",&escript::Data::sign)      .def("_sign",&escript::Data::sign)
248        .def("_symmetric",&escript::Data::symmetric)
249        .def("_nonsymmetric",&escript::Data::nonsymmetric)
250        .def("_trace",&escript::Data::trace)
251        .def("_swap_axes",&escript::Data::swapaxes)
252        .def("_eigenvalues",&escript::Data::eigenvalues)
253        .def("_eigenvalues_and_eigenvectors",&escript::Data::eigenvalues_and_eigenvectors,(arg("tol")=1.e-13))
254      // functions returning a single real number:      // functions returning a single real number:
255      .def("_Lsup",&escript::Data::Lsup)      .def("_Lsup",&escript::Data::Lsup)
256      .def("_sup",&escript::Data::sup)      .def("_sup",&escript::Data::sup)
257      .def("_inf",&escript::Data::inf)      .def("_inf",&escript::Data::inf)
258      .def("_integrate",&escript::Data::integrate)      .def("_integrateToTuple",&escript::Data::integrateToTuple)
259    
260      // following implements the python abs operator      // following implements the python abs operator
261      .def("__abs__",&escript::Data::abs)      .def("__abs__",&escript::Data::abs)
# Line 201  BOOST_PYTHON_MODULE(escriptcpp) Line 270  BOOST_PYTHON_MODULE(escriptcpp)
270      // following two functions implement the python ** operator      // following two functions implement the python ** operator
271      .def("__pow__",&escript::Data::powO)      .def("__pow__",&escript::Data::powO)
272      .def("__pow__",&escript::Data::powD)      .def("__pow__",&escript::Data::powD)
273        .def("__rpow__",&escript::Data::rpowO)
274      // NOTE:: The order of these declarations is important. Anything      // NOTE:: The order of these declarations is important. Anything
275      // declared before the generic declaration isn't found so the generic      // declared before the generic declaration isn't found so the generic
276      // version will be called.      // version will be called.
# Line 235  BOOST_PYTHON_MODULE(escriptcpp) Line 305  BOOST_PYTHON_MODULE(escriptcpp)
305    // Factory methods for function space    // Factory methods for function space
306    //    //
307    def("ContinuousFunction",escript::continuousFunction);    def("ContinuousFunction",escript::continuousFunction);
308      def("ReducedContinuousFunction",escript::reducedContinuousFunction);
309    def("Function",escript::function);    def("Function",escript::function);
310      def("ReducedFunction",escript::reducedFunction);
311    def("FunctionOnBoundary",escript::functionOnBoundary);    def("FunctionOnBoundary",escript::functionOnBoundary);
312      def("ReducedFunctionOnBoundary",escript::reducedFunctionOnBoundary);
313    def("FunctionOnContactZero",escript::functionOnContactZero);    def("FunctionOnContactZero",escript::functionOnContactZero);
314      def("ReducedFunctionOnContactZero",escript::reducedFunctionOnContactZero);
315    def("FunctionOnContactOne",escript::functionOnContactOne);    def("FunctionOnContactOne",escript::functionOnContactOne);
316      def("ReducedFunctionOnContactOne",escript::reducedFunctionOnContactOne);
317    def("Solution",escript::solution);    def("Solution",escript::solution);
318    def("ReducedSolution",escript::reducedSolution);    def("ReducedSolution",escript::reducedSolution);
319    def("DiracDeltaFunction",escript::diracDeltaFunction);    def("DiracDeltaFunction",escript::diracDeltaFunction);
# Line 246  BOOST_PYTHON_MODULE(escriptcpp) Line 321  BOOST_PYTHON_MODULE(escriptcpp)
321    //    //
322    // Factory methods for Data    // Factory methods for Data
323    //    //
324      def("load",escript::load);
325      def("loadIsConfigured",escript::loadConfigured);
326    def("Scalar",escript::Scalar,    def("Scalar",escript::Scalar,
327        (arg("value")=0.0,        (arg("value")=0.0,
328         arg("what")=escript::FunctionSpace(),         arg("what")=escript::FunctionSpace(),
# Line 268  BOOST_PYTHON_MODULE(escriptcpp) Line 345  BOOST_PYTHON_MODULE(escriptcpp)
345         arg("expanded")=false));         arg("expanded")=false));
346    
347    //    //
348      // Binary operators
349      //
350      def("C_GeneralTensorProduct",escript::C_GeneralTensorProduct,
351          (arg("arg0")=escript::Data(),
352           arg("arg1")=escript::Data(),
353           arg("axis_offset")=0,
354           arg("transpose")=0));
355    
356      //
357    // Interface for AbstractSystemMatrix    // Interface for AbstractSystemMatrix
358    //    //
359    class_<escript::AbstractSystemMatrix>("Operator",init<>())    class_<escript::AbstractSystemMatrix>("Operator","",init<>())    // Doco goes in the empty string param
360       .def("isEmpty",&escript::AbstractSystemMatrix::isEmpty)       .def("isEmpty",&escript::AbstractSystemMatrix::isEmpty)
361       .def("solve",&escript::AbstractSystemMatrix::solve)       .def("solve",&escript::AbstractSystemMatrix::solve)
362       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)       .def("of",&escript::AbstractSystemMatrix::vectorMultiply)
# Line 278  BOOST_PYTHON_MODULE(escriptcpp) Line 364  BOOST_PYTHON_MODULE(escriptcpp)
364       .def("saveHB",&escript::AbstractSystemMatrix::saveHB)       .def("saveHB",&escript::AbstractSystemMatrix::saveHB)
365       .def("resetValues",&escript::AbstractSystemMatrix::resetValues)       .def("resetValues",&escript::AbstractSystemMatrix::resetValues)
366       .def(self*other<escript::Data>());       .def(self*other<escript::Data>());
367      //
368      // Interface for AbstractTransportProblem
369      //
370      class_<escript::AbstractTransportProblem>("TransportProblem","",init<>())    // Doco goes in the empty string param
371         .def("isEmpty",&escript::AbstractTransportProblem::isEmpty)
372         .def("solve",&escript::AbstractTransportProblem::solve)
373         .def("setInitialValue",&escript::AbstractTransportProblem::setInitialValue)
374         .def("insertConstraint",&escript::AbstractTransportProblem::insertConstraint)
375         .def("reset",&escript::AbstractTransportProblem::resetTransport)
376         .def("resetValues",&escript::AbstractTransportProblem::resetTransport)
377         .def("getSafeTimeStepSize",&escript::AbstractTransportProblem::getSafeTimeStepSize)
378         .def("getUnlimitedTimeStepSize",&escript::AbstractTransportProblem::getUnlimitedTimeStepSize);
379    
380      // Functions to modify global parameters
381      def("setEscriptParamInt",escript::setEscriptParamInt,
382          (arg("value")=0));
383      def("getEscriptParamInt",escript::getEscriptParamInt,
384          (arg("sentinel")=0));
385      def("listEscriptParams",escript::listEscriptParams);
386    
387    //    //
388    // Register esysExceptionTranslator    // Register esysExceptionTranslator
389    //    //
390    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);
   
391  }  }

Legend:
Removed from v.391  
changed lines
  Added in v.2533

  ViewVC Help
Powered by ViewVC 1.1.26