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

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

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

revision 3082 by jfenwick, Tue Aug 3 06:04:05 2010 UTC revision 3086 by jfenwick, Thu Aug 5 05:07:58 2010 UTC
# Line 25  extern "C" { Line 25  extern "C" {
25  #include "SystemMatrixAdapter.h"  #include "SystemMatrixAdapter.h"
26  #include "TransportProblemAdapter.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 41  using namespace boost::python; Line 41  using namespace boost::python;
41    
42  /**  /**
43     \page dudley Dudley     \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 dudley.     to the C++ wrapper to dudley.
46    
47     \version 1.0.0     \version 1.0.0
# Line 72  BOOST_PYTHON_MODULE(dudleycpp) Line 72  BOOST_PYTHON_MODULE(dudleycpp)
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::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));    register_exception_translator<dudley::DudleyAdapterException>(&(esysUtils::esysExceptionTranslator));
76    
77    def("LoadMesh",dudley::loadMesh,    def("LoadMesh",dudley::loadMesh,
78        (arg("fileName")="file.nc"),":rtype: `Domain`"        (arg("fileName")="file.nc"),":rtype: `Domain`"
# Line 178  BOOST_PYTHON_MODULE(dudleycpp) Line 178  BOOST_PYTHON_MODULE(dudleycpp)
178    
179    
180    class_<dudley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<dudley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
181        ("MeshAdapter","A concrete class representing a domain. For more details, please consult the c++ documentation.",init<optional <Finley_Mesh*> >())        ("MeshAdapter","A concrete class representing a domain. For more details, please consult the c++ documentation.",init<optional <Dudley_Mesh*> >())
182        .def(init<const dudley::MeshAdapter&>())        .def(init<const dudley::MeshAdapter&>())
183        .def("write",&dudley::MeshAdapter::write,args("filename"),        .def("write",&dudley::MeshAdapter::write,args("filename"),
184  "Write the current mesh to a file with the given name.")  "Write the current mesh to a file with the given name.")

Legend:
Removed from v.3082  
changed lines
  Added in v.3086

  ViewVC Help
Powered by ViewVC 1.1.26