/[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/finley/CPPAdapter/finleycpp.cpp revision 203 by jgs, Wed Nov 23 04:36:15 2005 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"  #include "MeshAdapter.h"
21  #include "finley/CPPAdapter/MeshAdapterFactory.h"  #include "MeshAdapterFactory.h"
22  #include "finley/CPPAdapter/SystemMatrixAdapter.h"  #include "SystemMatrixAdapter.h"
23    
24  #include "esysUtils/EsysException.h"  #include "esysUtils/EsysException.h"
25  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
# Line 141  BOOST_PYTHON_MODULE(finleycpp) Line 141  BOOST_PYTHON_MODULE(finleycpp)
141        .def("setX",&finley::MeshAdapter::setNewX)        .def("setX",&finley::MeshAdapter::setNewX)
142        .def("getX",&finley::MeshAdapter::getX)        .def("getX",&finley::MeshAdapter::getX)
143        .def("getNormal",&finley::MeshAdapter::getNormal)        .def("getNormal",&finley::MeshAdapter::getNormal)
144        .def("getSize",&finley::MeshAdapter::getSize);        .def("getSize",&finley::MeshAdapter::getSize)
145          .def("saveDX",&finley::MeshAdapter::saveDX)
146          .def("saveVTK",&finley::MeshAdapter::saveVTK);
147    
148    
149    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >    class_<finley::SystemMatrixAdapter, bases<escript::AbstractSystemMatrix> >
150        ("OperatorAdapter",no_init)        ("OperatorAdapter",no_init)
151        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)        .def("nullifyRowsAndCols",&finley::SystemMatrixAdapter::nullifyRowsAndCols)
152        .def("setValue",&finley::SystemMatrixAdapter::setValue)        .def("resetValues",&finley::SystemMatrixAdapter::resetValues)
153        .def("resetSolver",&finley::SystemMatrixAdapter::resetSolver)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
154        .def("saveMM",&finley::SystemMatrixAdapter::saveMM);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
155    
156  }  }

Legend:
Removed from v.121  
changed lines
  Added in v.203

  ViewVC Help
Powered by ViewVC 1.1.26