/[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 110 by jgs, Mon Feb 14 04:14:42 2005 UTC trunk/finley/src/CPPAdapter/finleycpp.cpp revision 727 by gross, Fri May 12 06:31:06 2006 UTC
# Line 15  Line 15 
15  ******************************************************************************/  ******************************************************************************/
16    
17  extern "C" {  extern "C" {
18  #include "finley/finleyC/Finley.h"  #include "../Finley.h"
19  }  }
 #include "finley/CPPAdapter/MeshAdapter.h"  
 #include "finley/CPPAdapter/MeshAdapterFactory.h"  
 #include "finley/CPPAdapter/SystemMatrixAdapter.h"  
20    
21  #include "esysUtils/EsysException.h"  #include "MeshAdapter.h"
22    #include "MeshAdapterFactory.h"
23    #include "SystemMatrixAdapter.h"
24    
25    #include "FinleyAdapterException.h"
26    // #include "esysUtils/EsysException.h"
27  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
28    
29  #include "escript/Data/AbstractContinuousDomain.h"  #include "escript/AbstractContinuousDomain.h"
30    
31  #include <boost/python.hpp>  #include <boost/python.hpp>
32  #include <boost/python/module.hpp>  #include <boost/python/module.hpp>
# Line 34  extern "C" { Line 36  extern "C" {
36  using namespace boost::python;  using namespace boost::python;
37    
38  /**  /**
39     @memo     \page finley Finley
40     finley is the python module name that contains the interfaces     Finley is the python module name that contains the interfaces
41     to the C++ wrapper to finley.     to the C++ wrapper to finley.
42    
43     @version 1.0.0     \version 1.0.0
   
    @doc  
44    
45     Class Description:     \section class_desc Class Description:
46     Data     Data
47    
48     Class Limitations:     \section class_limits Class Limitations:
49     None     None
50    
51     Class Conditions of Use:     \section class_conds Class Conditions of Use:
52     None     None
53    
54     Throws:     \section throws Throws:
55     None     None
56    
57  */  */
# Line 127  BOOST_PYTHON_MODULE(finleycpp) Line 127  BOOST_PYTHON_MODULE(finleycpp)
127        arg("tolerance")=std::numeric_limits<double>::epsilon()),        arg("tolerance")=std::numeric_limits<double>::epsilon()),
128        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
129    
130    register_exception_translator<esysUtils::EsysException>(&esysUtils::esysExceptionTranslator);    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));
131    
132    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
133        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter",init<optional <Finley_Mesh*> >())
# Line 143  BOOST_PYTHON_MODULE(finleycpp) Line 143  BOOST_PYTHON_MODULE(finleycpp)
143        .def("setX",&finley::MeshAdapter::setNewX)        .def("setX",&finley::MeshAdapter::setNewX)
144        .def("getX",&finley::MeshAdapter::getX)        .def("getX",&finley::MeshAdapter::getX)
145        .def("getNormal",&finley::MeshAdapter::getNormal)        .def("getNormal",&finley::MeshAdapter::getNormal)
146        .def("getSize",&finley::MeshAdapter::getSize);        .def("getSize",&finley::MeshAdapter::getSize)
147          .def("saveDX",&finley::MeshAdapter::saveDX)
148          .def("saveVTK",&finley::MeshAdapter::saveVTK);
149    
150    
151    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
152        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)
153        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
154        .def("setValue",&finley::SystemMatrixAdapter::setValue)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
155        .def("resetSolver",&finley::SystemMatrixAdapter::resetSolver)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
156        .def("saveMM",&finley::SystemMatrixAdapter::saveMM);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
157    
158  }  }

Legend:
Removed from v.110  
changed lines
  Added in v.727

  ViewVC Help
Powered by ViewVC 1.1.26