/[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 123 by jgs, Fri Jul 8 04:08:13 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 125  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 141  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)
       .def("resetSolver",&finley::SystemMatrixAdapter::resetSolver)  
155        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
156        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
157    

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

  ViewVC Help
Powered by ViewVC 1.1.26