/[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/esys2/finley/src/CPPAdapter/finleycpp.cpp revision 108 by jgs, Thu Jan 27 06:21:59 2005 UTC trunk/finley/src/CPPAdapter/finleycpp.cpp revision 682 by robwdcock, Mon Mar 27 02:43:09 2006 UTC
# Line 15  Line 15 
15  ******************************************************************************/  ******************************************************************************/
16    
17  extern "C" {  extern "C" {
18  #include "finley/finleyC/Finley.h"  #include "../Finley.h"
19  }  }
20  #include "finley/CPPAdapter/MeshAdapter.h"  
21  #include "finley/CPPAdapter/MeshAdapterFactory.h"  #include "MeshAdapter.h"
22  #include "finley/CPPAdapter/SystemMatrixAdapter.h"  #include "MeshAdapterFactory.h"
23    #include "SystemMatrixAdapter.h"
24    
25  #include "esysUtils/EsysException.h"  #include "esysUtils/EsysException.h"
26  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
27    
28  #include "escript/Data/AbstractContinuousDomain.h"  #include "escript/AbstractContinuousDomain.h"
29    
30  #include <boost/python.hpp>  #include <boost/python.hpp>
31  #include <boost/python/module.hpp>  #include <boost/python/module.hpp>
# Line 34  extern "C" { Line 35  extern "C" {
35  using namespace boost::python;  using namespace boost::python;
36    
37  /**  /**
38     @memo     \page finley Finley
39     finley is the python module name that contains the interfaces     Finley is the python module name that contains the interfaces
40     to the C++ wrapper to finley.     to the C++ wrapper to finley.
41    
42     @version 1.0.0     \version 1.0.0
   
    @doc  
43    
44     Class Description:     \section class_desc Class Description:
45     Data     Data
46    
47     Class Limitations:     \section class_limits Class Limitations:
48     None     None
49    
50     Class Conditions of Use:     \section class_conds Class Conditions of Use:
51     None     None
52    
53     Throws:     \section throws Throws:
54     None     None
55    
56  */  */
# Line 114  BOOST_PYTHON_MODULE(finleycpp) Line 113  BOOST_PYTHON_MODULE(finleycpp)
113        arg("useElementsOnFace")=false),        arg("useElementsOnFace")=false),
114        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
115    
116      def("Merge",finley::meshMerge,
117          return_value_policy<manage_new_object>());
118    
119    def("GlueFaces",finley::glueFaces,    def("GlueFaces",finley::glueFaces,
120        (arg("safetyFactor")=0.2,        (arg("safetyFactor")=0.2,
121        arg("tolerance")=std::numeric_limits<double>::epsilon()),        arg("tolerance")=std::numeric_limits<double>::epsilon()),
# Line 137  BOOST_PYTHON_MODULE(finleycpp) Line 139  BOOST_PYTHON_MODULE(finleycpp)
139        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
140        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)
141        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)
142          .def("setX",&finley::MeshAdapter::setNewX)
143        .def("getX",&finley::MeshAdapter::getX)        .def("getX",&finley::MeshAdapter::getX)
144        .def("getNormal",&finley::MeshAdapter::getNormal)        .def("getNormal",&finley::MeshAdapter::getNormal)
145        .def("getSize",&finley::MeshAdapter::getSize);        .def("getSize",&finley::MeshAdapter::getSize)
146          .def("saveDX",&finley::MeshAdapter::saveDX)
147          .def("saveVTK",&finley::MeshAdapter::saveVTK);
148    
149    
150    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
151        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)
152        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
153        .def("setValue",&finley::SystemMatrixAdapter::setValue)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
154        .def("resetSolver",&finley::SystemMatrixAdapter::resetSolver)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
155        .def("saveMM",&finley::SystemMatrixAdapter::saveMM);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
156    
157  }  }

Legend:
Removed from v.108  
changed lines
  Added in v.682

  ViewVC Help
Powered by ViewVC 1.1.26