/[escript]/branches/diaplayground/dudley/src/CPPAdapter/dudleycpp.cpp
ViewVC logotype

Diff of /branches/diaplayground/dudley/src/CPPAdapter/dudleycpp.cpp

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

trunk/finley/src/CPPAdapter/finleycpp.cpp revision 1370 by gross, Wed Jan 2 09:21:43 2008 UTC trunk/dudley/src/CPPAdapter/dudleycpp.cpp revision 3675 by jfenwick, Thu Nov 17 00:53:38 2011 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2010 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  #ifdef PASO_MPI  #ifdef ESYS_MPI
16  #include <mpi.h>  #include "esysUtils/Esys_MPI.h"
17  #endif  #endif
18  extern "C" {  extern "C" {
19  #include "../Finley.h"  #include "../Dudley.h"
20  }  }
21    
22    #include <pasowrap/SystemMatrixAdapter.h>
23    #include <pasowrap/TransportProblemAdapter.h>
24    
25  #include "MeshAdapter.h"  #include "MeshAdapter.h"
26  #include "MeshAdapterFactory.h"  #include "MeshAdapterFactory.h"
 #include "SystemMatrixAdapter.h"  
 #include "TransportProblemAdapter.h"  
27    
28  #include "FinleyAdapterException.h"  #include "DudleyAdapterException.h"
29  // #include "esysUtils/EsysException.h"  // #include "esysUtils/EsysException.h"
30  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
31    
# Line 35  extern "C" { Line 35  extern "C" {
35  #include <boost/python/module.hpp>  #include <boost/python/module.hpp>
36  #include <boost/python/def.hpp>  #include <boost/python/def.hpp>
37  #include <boost/python/detail/defaults_gen.hpp>  #include <boost/python/detail/defaults_gen.hpp>
38    #include <boost/version.hpp>
39    
40  using namespace boost::python;  using namespace boost::python;
41    
42  /**  /**
43     \page finley Finley     \page dudley Dudley
44     Finley is the python module name that contains the interfaces     Dudley is the python module name that contains the interfaces
45     to the C++ wrapper to finley.     to the C++ wrapper to dudley.
46    
47     \version 1.0.0     \version 1.0.0
48    
# Line 59  using namespace boost::python; Line 60  using namespace boost::python;
60    
61  */  */
62    
63  //  BOOST_PYTHON_MODULE(dudleycpp)
 // The BOOST_PYTHON_FUNCTION_OVERLOADS macro generates function overloads for optional  
 // arguments to the respective finley functions.  
 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  
 //  
 // NOTE: If the number of arguments to the finley functions change  
 // the magic numbers in the BOOST_PYTHON_FUNCTION_OVERLOADS call  
 // must change.  
 //  
 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(readMesh_overloads,finley::readMesh,1,2)  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(brick_overloads,finley::brick,0,12)  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(rectangle_overloads,finley::rectangle,0,9)  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(interval_overloads,finley::interval,0,6)  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(glueFaces_overloads,finley::glueFaces,1,3)  
 // BOOST_PYTHON_FUNCTION_OVERLOADS(joinFaces_overloads,finley::joinFaces,1,3)  
   
 BOOST_PYTHON_MODULE(finleycpp)  
64  {  {
65    // This feature was added in boost v1.34
66    #if ((BOOST_VERSION/100)%1000 > 34) || (BOOST_VERSION/100000 >1)
67      // params are: bool show_user_defined, bool show_py_signatures, bool show_cpp_signatures
68      docstring_options docopt(true, true, false);
69    #endif
70    
   // def("ReadMesh",finley::readMesh,readMesh_overloads());  
   // def("Brick",finley::brick,brick_overloads());  
   // def("Rectangle",finley::rectangle,rectangle_overloads());  
   // def("Interval",finley::interval,interval_overloads());  
   // def("GlueFaces",finley::glueFaces,glueFaces_overloads());  
   // def("JoinFaces",finley::joinFaces,joinFaces_overloads());  
71    //    //
72    // NOTE: The return_value_policy is necessary for functions that    // NOTE: The return_value_policy is necessary for functions that
73    // return pointers.    // return pointers.
74      //
75      register_exception_translator<dudley::DudleyAdapterException>(&(esysUtils::esysExceptionTranslator));
76    
77    def("LoadMesh",finley::loadMesh,    def("LoadMesh",dudley::loadMesh,
78        (arg("fileName")="file.nc"),        (arg("fileName")="file.nc"),":rtype: `Domain`"
79        return_value_policy<manage_new_object>());  /*      ,return_value_policy<manage_new_object>());*/
80    def("ReadMesh",finley::readMesh,        );
81        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),  
82        return_value_policy<manage_new_object>());    def("ReadMesh",dudley::readMesh,
83    def("ReadMeshMPI",finley::readMeshMPI,        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true)
84        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),  /*      ,return_value_policy<manage_new_object>());*/
85        return_value_policy<manage_new_object>());      ,"Read a mesh from a file. For MPI parallel runs fan out the mesh to multiple processes.\n\n"
86    ":rtype: `Domain`\n:param fileName:\n:type fileName: ``string``\n"
87    def("ReadGmsh",finley::readGmsh,  ":param integrationOrder: order of the quadrature scheme. If *integrationOrder<0* the integration order is selected independently.\n"
88        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),  ":type integrationOrder: ``int``\n"
89        return_value_policy<manage_new_object>());  ":param reducedIntegrationOrder: order of the quadrature scheme. If *reducedIntegrationOrder<0* the integration order is selected independently.\n"
90    ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``");
91    
92      def("ReadGmsh",dudley::readGmsh,
93          (arg("fileName")="file.msh",
94           arg("numDim"),
95           arg("integrationOrder")=-1,
96           arg("reducedIntegrationOrder")=-1,
97           arg("optimize")=true,  
98           arg("useMacroElements")=false)
99    //       ,return_value_policy<manage_new_object>());
100    ,"Read a gmsh mesh file\n\n"
101    ":rtype: `Domain`\n:param fileName:\n:type fileName: ``string``\n"
102    ":param integrationOrder: order of the quadrature scheme. If *integrationOrder<0* the integration order is selected independently.\n"
103    ":type integrationOrder: ``int``\n"
104    ":param reducedIntegrationOrder: order of the quadrature scheme. If *reducedIntegrationOrder<0* the integration order is selected independently.\n"
105    ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``\n"
106    ":param useMacroElements: Enable the usage of macro elements instead of second order elements.\n:type useMacroElements: ``bool``"
107    );
108    
109    def ("Brick",finley::brick,    def ("Brick",dudley::brick,
110        (arg("n0")=1,arg("n1")=1,arg("n2")=1,        (arg("n0")=1,arg("n1")=1,arg("n2")=1,
111        arg("order")=1,        arg("order")=1,
112        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0,        arg("l0")=1.0,arg("l1")=1.0,arg("l2")=1.0,
# Line 111  BOOST_PYTHON_MODULE(finleycpp) Line 114  BOOST_PYTHON_MODULE(finleycpp)
114        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
115        arg("useElementsOnFace")=false,        arg("useElementsOnFace")=false,
116        arg("useFullElementOrder")=false,        arg("useFullElementOrder")=false,
117        arg("optimize")=false),        arg("optimize")=false)
118        return_value_policy<manage_new_object>());  ,"Creates a tetrahedral mesh by subdividing n0 x n1 x n2 rectangular elements over the brick [0,l0] x [0,l1] x [0,l2]."
119    "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n:param n2:\n:type n2:\n"
120    ":param order: =1, =-1 or =2 gives the order of shape function. If -1 macro elements of order 1 are used.\n"
121    ":param l0: length of side 0\n:param l1:\n:param l2:\n"
122    ":param integrationOrder: order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently.\n"
123    ":param reducedIntegrationOrder: order of the quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently.\n"
124    ":param useElementsOnFace:  whether or not to use elements on face\n"
125    ":type useElementsOnFace: ``int``"
126    ":param periodic0:  whether or not boundary conditions are periodic\n"
127    ":param periodic1:\n:param periodic2:\n"
128    ":param useFullElementOrder:\n:param optimize:\n"
129    ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``"
130    );
131    
132    def ("Rectangle",finley::rectangle,    def ("Rectangle",dudley::rectangle,
133        (arg("n0")=1,arg("n1")=1,arg("order")=1,        (arg("n0")=1,arg("n1")=1,arg("order")=1,
134        arg("l0")=1.0,arg("l1")=1.0,        arg("l0")=1.0,arg("l1")=1.0,
135        arg("periodic0")=false,arg("periodic1")=false,        arg("periodic0")=false,arg("periodic1")=false,
136        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
137        arg("useElementsOnFace")=false,        arg("useElementsOnFace")=false,
138        arg("useFullElementOrder")=false,        arg("useFullElementOrder")=false,
139        arg("optimize")=false),        arg("optimize")=false)
140        return_value_policy<manage_new_object>());  ,"Creates a triangular mesh by subdividing n0 x n1 rectangular elements over the brick [0,l0] x [0,l1]."
141    "\n\n:param n0:\n:type n0:\n:param n1:\n:type n1:\n"
142    def("Merge",finley::meshMerge,  ":param order: =1, =-1 or =2 gives the order of shape function. If -1 macro elements of order 1 are used.\n"
143        return_value_policy<manage_new_object>());  ":param l0: length of side 0\n:param l1:\n"
144    ":param integrationOrder: order of the quadrature scheme. If integrationOrder<0 the integration order is selected independently.\n"
145    def("GlueFaces",finley::glueFaces,  ":param reducedIntegrationOrder: order of the quadrature scheme. If reducedIntegrationOrder<0 the integration order is selected independently.\n"
146        (arg("safetyFactor")=0.2,  ":param useElementsOnFace:  whether or not to use elements on face\n"
147        arg("tolerance")=1.e-8,  ":type useElementsOnFace: ``int``"
148        arg("optimize")=true),  ":param periodic0:  whether or not boundary conditions are periodic\n"
149        return_value_policy<manage_new_object>());  ":param periodic1:\n"
150    ":param useFullElementOrder:\n:param optimize:\n"
151    def("JoinFaces",finley::joinFaces,  ":param useMacroElements: Enable the usage of first order macro elements.\n:type useMacroElements: ``bool``\n"
152        (arg("safetyFactor")=0.2,  ":param optimize: Enable optimisation of node labels\n:type optimize: ``bool``"
153        arg("tolerance")=1.e-8,  );
154        arg("optimize")=true),  
155        return_value_policy<manage_new_object>());    class_<dudley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
156          ("MeshAdapter","A concrete class representing a domain. For more details, please consult the c++ documentation.",init<optional <Dudley_Mesh*> >())
157          .def(init<const dudley::MeshAdapter&>())
158          .def("write",&dudley::MeshAdapter::write,args("filename"),
159    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >  "Write the current mesh to a file with the given name.")
160        ("MeshAdapter",init<optional <Finley_Mesh*> >())        .def("print_mesh_info",&dudley::MeshAdapter::Print_Mesh_Info,(arg("full")=false),
161        .def(init<const finley::MeshAdapter&>())  ":param full:\n:type full: ``bool``")
162        .def("write",&finley::MeshAdapter::write)        .def("dump",&dudley::MeshAdapter::dump,args("fileName")
163        .def("print_mesh_info",&finley::MeshAdapter::Print_Mesh_Info,(arg("full")=false))  ,"dumps the mesh to a file with the given name.")
164        .def("dump",&finley::MeshAdapter::dump)        .def("getDescription",&dudley::MeshAdapter::getDescription,
165        .def("getDescription",&finley::MeshAdapter::getDescription)  ":return: a description for this domain\n:rtype: ``string``")
166        .def("getDim",&finley::MeshAdapter::getDim)        .def("getDim",&dudley::MeshAdapter::getDim,":rtype: ``int``")
167        .def("getDataShape",&finley::MeshAdapter::getDataShape)        .def("getDataShape",&dudley::MeshAdapter::getDataShape, args("functionSpaceCode"),
168        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)  ":return: a pair (dps, ns) where dps=the number of data points per sample, and ns=the number of samples\n:rtype: ``tuple``")
169        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)        .def("getNumDataPointsGlobal",&dudley::MeshAdapter::getNumDataPointsGlobal,
170        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)  ":return: the number of data points summed across all MPI processes\n"
171        .def("addPDEToTransportProblem",&finley::MeshAdapter::addPDEToTransportProblem)  ":rtype: ``int``")
172        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)        .def("addPDEToSystem",&dudley::MeshAdapter::addPDEToSystem,
173        .def("newTransportProblem",&finley::MeshAdapter::newTransportProblem)  args("mat", "rhs","A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact"),
174        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)  "adds a PDE onto the stiffness matrix mat and a rhs\n\n"
175        .def("setX",&finley::MeshAdapter::setNewX)  ":param mat:\n:type mat: `OperatorAdapter`\n:param rhs:\n:type rhs: `Data`\n"
176        .def("getX",&finley::MeshAdapter::getX)  ":param A:\n:type A: `Data`\n"
177        .def("getNormal",&finley::MeshAdapter::getNormal)  ":param B:\n:type B: `Data`\n"
178        .def("getSize",&finley::MeshAdapter::getSize)  ":param C:\n:type C: `Data`\n"
179        .def("saveDX",&finley::MeshAdapter::saveDX)  ":param D:\n:type D: `Data`\n"
180        .def("saveVTK",&finley::MeshAdapter::saveVTK)  ":param X:\n:type X: `Data`\n"
181        .def("setTagMap",&finley::MeshAdapter::setTagMap)  ":param Y:\n:type Y: `Data`\n"
182        .def("getTag",&finley::MeshAdapter::getTag)  ":param d:\n:type d: `Data`\n"
183        .def("isValidTagName",&finley::MeshAdapter::isValidTagName)  ":param d_contact:\n:type d_contact: `Data`\n"
184        .def("showTagNames",&finley::MeshAdapter::showTagNames)  ":param y_contact:\n:type y_contact: `Data`\n"
185        .def("getMPISize",&finley::MeshAdapter::getMPISize)  )
186        .def("getMPIRank",&finley::MeshAdapter::getMPIRank);        .def("addPDEToLumpedSystem",&dudley::MeshAdapter::addPDEToLumpedSystem,
187    args("mat", "D", "d"),
188    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >  "adds a PDE onto the lumped stiffness matrix\n\n"
189        ("OperatorAdapter",no_init)  ":param mat:\n:type mat: `Data`\n"
190        .def("print_matrix_info",&finley::SystemMatrixAdapter::Print_Matrix_Info,(arg("full")=false))  ":param D:\n:type D: `Data`\n"
191        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)  ":param d:\n:type d: `Data`\n"
192        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)  ":param useHRZ:\n:type useHRZ: bool\n"
193        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)  )
194        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("addPDEToRHS",&dudley::MeshAdapter::addPDEToRHS,
195    args("rhs", "X", "Y", "y", "y_contact"),
196    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >  "adds a PDE onto the stiffness matrix mat and a rhs\n\n"
197        ("OperatorAdapter",no_init)  ":param rhs:\n:type rhs: `Data`\n"
198        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);  ":param X:\n:type X: `Data`\n"
199    ":param Y:\n:type Y: `Data`\n"
200    ":param y:\n:type y: `Data`\n"
201    ":param y_contact:\n:type y_contact: `Data`"
202    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));  )
203          .def("addPDEToTransportProblem",&dudley::MeshAdapter::addPDEToTransportProblem,
204    args( "tp", "source", "M", "A", "B", "C", "D", "X", "Y", "d", "y", "d_contact", "y_contact"),
205    ":param tp:\n:type tp: `TransportProblemAdapter`\n"
206    ":param source:\n:type source: `Data`\n"
207    ":param M:\n:type M: `Data`\n"
208    ":param A:\n:type A: `Data`\n"
209    ":param B:\n:type B: `Data`\n"
210    ":param C:\n:type C: `Data`\n"
211    ":param D:\n:type D: `Data`\n"
212    ":param X:\n:type X: `Data`\n"
213    ":param Y:\n:type Y: `Data`\n"
214    ":param d:\n:type d: `Data`\n"
215    ":param y:\n:type y: `Data`\n"
216    ":param d_contact:\n:type d_contact: `Data`\n"
217    ":param y_contact:\n:type y_contact: `Data`\n"
218    )
219          .def("newOperator",&dudley::MeshAdapter::newSystemMatrix,
220    args("row_blocksize", "row_functionspace", "column_blocksize", "column_functionspace", "type"),
221    "creates a SystemMatrixAdapter stiffness matrix and initializes it with zeros\n\n"
222    ":param row_blocksize:\n:type row_blocksize: ``int``\n"
223    ":param row_functionspace:\n:type row_functionspace: `FunctionSpace`\n"
224    ":param column_blocksize:\n:type column_blocksize: ``int``\n"
225    ":param column_functionspace:\n:type column_functionspace: `FunctionSpace`\n"
226    ":param type:\n:type type: ``int``\n"
227    )
228          .def("newTransportProblem",&dudley::MeshAdapter::newTransportProblem,
229    args("theta", "blocksize", "functionspace", "type"),
230    "creates a TransportProblemAdapter\n\n"
231    ":param theta:\n:type theta: ``float``\n"
232    ":param blocksize:\n:type blocksize: ``int``\n"
233    ":param functionspace:\n:type functionspace: `FunctionSpace`\n"
234    ":param type:\n:type type: ``int``\n"
235    )
236          .def("getSystemMatrixTypeId",&dudley::MeshAdapter::getSystemMatrixTypeId,
237    args("solver", "preconditioner", "package", "symmetry"),
238    ":return: the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, perconditioner, and symmetric matrix is used.\n"
239    ":rtype: ``int``\n"
240    ":param solver:\n:type solver: ``int``\n"
241    ":param preconditioner:\n:type preconditioner: ``int``\n"
242    ":param package:\n:type package: ``int``\n"
243    ":param symmetry:\n:type symmetry: ``int``\n"
244    )
245          .def("getTransportTypeId",&dudley::MeshAdapter::getTransportTypeId,
246    args("solver", "preconditioner", "package", "symmetry"),
247    ":return: the identifier of the transport problem type to be used when a particular solver, perconditioner, package and symmetric matrix is used.\n"
248    ":rtype: ``int``\n"
249    ":param solver:\n:type solver: ``int``\n"
250    ":param preconditioner:\n:type preconditioner: ``int``\n"
251    ":param package:\n:type package: ``int``\n"
252    ":param symmetry:\n:type symmetry: ``int``\n"
253    )
254          .def("setX",&dudley::MeshAdapter::setNewX,
255    args("arg"), "assigns new location to the domain\n\n:param arg:\n:type arg: `Data`")
256          .def("getX",&dudley::MeshAdapter::getX, ":return: locations in the FEM nodes\n\n"
257    ":rtype: `Data`")
258          .def("getNormal",&dudley::MeshAdapter::getNormal,
259    ":return: boundary normals at the quadrature point on the face elements\n"
260    ":rtype: `Data`")
261          .def("getSize",&dudley::MeshAdapter::getSize,":return: the element size\n"
262    ":rtype: `Data`")
263          .def("saveDX",&dudley::MeshAdapter::saveDX,args("filename" ,"arg"),
264    "Saves a dictonary of Data objects to an OpenDX input file. The keywords are used as identifier"
265    "\n\n:param filename: \n:type filename: ``string``\n"
266    "\n:param arg: \n:type arg: ``dict``\n")
267          .def("saveVTK",&dudley::MeshAdapter::saveVTK,
268    args("filename" ,"arg",  "metadata", "metadata_schema"),
269    "Saves a dictonary of Data objects to an VTK XML input file. The keywords are used as identifier"
270    "\n\n:param filename:\n:type filename: ``string``\n"
271    ":param arg:\n:type arg: ``dict``\n"
272    ":param metadata:\n:type metadata: ``string``\n"
273    ":param metadata_schema:\n:type metadata_schema: ``string``\n"
274    )
275          .def("setTagMap",&dudley::MeshAdapter::setTagMap,args("name","tag"),
276    "Give a tag number a name.\n\n:param name: Name for the tag\n:type name: ``string``\n"
277    ":param tag: numeric id\n:type tag: ``int``\n:note: Tag names must be unique within a domain")
278          .def("getTag",&dudley::MeshAdapter::getTag,args("name"),":return: tag id for "
279    "``name``\n:rtype: ``string``")
280          .def("isValidTagName",&dudley::MeshAdapter::isValidTagName,args("name"),
281    ":return: True is ``name`` corresponds to a tag\n:rtype: ``bool``")
282          .def("showTagNames",&dudley::MeshAdapter::showTagNames,":return: A space separated list of tag names\n:rtype: ``string``")
283          .def("getMPISize",&dudley::MeshAdapter::getMPISize,":return: the number of processes used for this `Domain`\n:rtype: ``int``")
284          .def("getMPIRank",&dudley::MeshAdapter::getMPIRank,":return: the rank of this process\n:rtype: ``int``")
285          .def("MPIBarrier",&dudley::MeshAdapter::MPIBarrier,"Wait until all processes have reached this point")
286          .def("onMasterProcessor",&dudley::MeshAdapter::onMasterProcessor,":return: True if this code is executing on the master process\n:rtype: `bool`");
287    
288  }  }

Legend:
Removed from v.1370  
changed lines
  Added in v.3675

  ViewVC Help
Powered by ViewVC 1.1.26