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

revision 4114 by caltinay, Fri Dec 14 04:24:46 2012 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 1  Line 1 
1    
2  /*****************************************************************************  /*****************************************************************************
3  *  *
4  * Copyright (c) 2003-2012 by University of Queensland  * Copyright (c) 2003-2014 by University of Queensland
5  * http://www.uq.edu.au  * http://www.uq.edu.au
6  *  *
7  * Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
# Line 9  Line 9 
9  * http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
10  *  *
11  * Development until 2012 by Earth Systems Science Computational Center (ESSCC)  * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12  * Development since 2012 by School of Earth Sciences  * Development 2012-2013 by School of Earth Sciences
13    * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14  *  *
15  *****************************************************************************/  *****************************************************************************/
16    
# Line 17  Line 18 
18  #ifdef ESYS_MPI  #ifdef ESYS_MPI
19  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
20  #endif  #endif
 extern "C" {  
21  #include "../Dudley.h"  #include "../Dudley.h"
 }  
22    
23  #include <pasowrap/SystemMatrixAdapter.h>  #include <pasowrap/SystemMatrixAdapter.h>
24  #include <pasowrap/TransportProblemAdapter.h>  #include <pasowrap/TransportProblemAdapter.h>
# Line 56  BOOST_PYTHON_MODULE(dudleycpp) Line 55  BOOST_PYTHON_MODULE(dudleycpp)
55    // NOTE: The return_value_policy is necessary for functions that    // NOTE: The return_value_policy is necessary for functions that
56    // return pointers.    // return pointers.
57    //    //
58    register_exception_translator<dudley::DudleyAdapterException>(&(esysUtils::esysExceptionTranslator));    register_exception_translator<dudley::DudleyAdapterException>(&(esysUtils::RuntimeErrorTranslator));
59    
60    def("LoadMesh",dudley::loadMesh,    def("LoadMesh",dudley::loadMesh,
61        (arg("fileName")="file.nc"),":rtype: `Domain`"        (arg("fileName")="file.nc"),":rtype: `Domain`"
# Line 221  args("theta", "blocksize", "functionspac Line 220  args("theta", "blocksize", "functionspac
220  )  )
221        .def("getSystemMatrixTypeId",&dudley::MeshAdapter::getSystemMatrixTypeId,        .def("getSystemMatrixTypeId",&dudley::MeshAdapter::getSystemMatrixTypeId,
222  args("solver", "preconditioner", "package", "symmetry"),  args("solver", "preconditioner", "package", "symmetry"),
223  ":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"  ":return: the identifier of the matrix type to be used for the global stiffness matrix when a particular solver, package, preconditioner, and symmetric matrix is used.\n"
224  ":rtype: ``int``\n"  ":rtype: ``int``\n"
225  ":param solver:\n:type solver: ``int``\n"  ":param solver:\n:type solver: ``int``\n"
226  ":param preconditioner:\n:type preconditioner: ``int``\n"  ":param preconditioner:\n:type preconditioner: ``int``\n"
# Line 230  args("solver", "preconditioner", "packag Line 229  args("solver", "preconditioner", "packag
229  )  )
230        .def("getTransportTypeId",&dudley::MeshAdapter::getTransportTypeId,        .def("getTransportTypeId",&dudley::MeshAdapter::getTransportTypeId,
231  args("solver", "preconditioner", "package", "symmetry"),  args("solver", "preconditioner", "package", "symmetry"),
232  ":return: the identifier of the transport problem type to be used when a particular solver, perconditioner, package and symmetric matrix is used.\n"  ":return: the identifier of the transport problem type to be used when a particular solver, preconditioner, package and symmetric matrix is used.\n"
233  ":rtype: ``int``\n"  ":rtype: ``int``\n"
234  ":param solver:\n:type solver: ``int``\n"  ":param solver:\n:type solver: ``int``\n"
235  ":param preconditioner:\n:type preconditioner: ``int``\n"  ":param preconditioner:\n:type preconditioner: ``int``\n"

Legend:
Removed from v.4114  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26