/[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 121 by jgs, Fri May 6 04:26:16 2005 UTC trunk/finley/src/CPPAdapter/finleycpp.cpp revision 474 by jgs, Mon Jan 30 04:23:44 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 "esysUtils/esysExceptionTranslator.h"  #include "MeshAdapterFactory.h"
23    #include "SystemMatrixAdapter.h"
24    
25  #include "escript/Data/AbstractContinuousDomain.h"  #include "EsysException.h"
26    #include "esysExceptionTranslator.h"
27    
28    #include "AbstractContinuousDomain.h"
29    
30  #include <boost/python.hpp>  #include <boost/python.hpp>
31  #include <boost/python/module.hpp>  #include <boost/python/module.hpp>
# Line 141  BOOST_PYTHON_MODULE(finleycpp) Line 142  BOOST_PYTHON_MODULE(finleycpp)
142        .def("setX",&finley::MeshAdapter::setNewX)        .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.121  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26