/[escript]/trunk/dudley/src/CPPAdapter/dudleycpp.cpp
ViewVC logotype

Diff of /trunk/dudley/src/CPPAdapter/dudleycpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/esys2/finley/src/CPPAdapter/finleycpp.cpp revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC trunk/finley/src/CPPAdapter/finleycpp.cpp revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 34  extern "C" { Line 34  extern "C" {
34  using namespace boost::python;  using namespace boost::python;
35    
36  /**  /**
37     @memo     \page finley Finley
38     finley is the python module name that contains the interfaces     Finley is the python module name that contains the interfaces
39     to the C++ wrapper to finley.     to the C++ wrapper to finley.
40    
41     @version 1.0.0     \version 1.0.0
42    
43     @doc     \section class_desc Class Description:
   
    Class Description:  
44     Data     Data
45    
46     Class Limitations:     \section class_limits Class Limitations:
47     None     None
48    
49     Class Conditions of Use:     \section class_conds Class Conditions of Use:
50     None     None
51    
52     Throws:     \section throws Throws:
53     None     None
54    
55  */  */
# Line 114  BOOST_PYTHON_MODULE(finleycpp) Line 112  BOOST_PYTHON_MODULE(finleycpp)
112        arg("useElementsOnFace")=false),        arg("useElementsOnFace")=false),
113        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
114    
115      def("Merge",finley::meshMerge,
116          return_value_policy<manage_new_object>());
117    
118    def("GlueFaces",finley::glueFaces,    def("GlueFaces",finley::glueFaces,
119        (arg("safetyFactor")=0.2,        (arg("safetyFactor")=0.2,
120        arg("tolerance")=std::numeric_limits<double>::epsilon()),        arg("tolerance")=std::numeric_limits<double>::epsilon()),
# Line 137  BOOST_PYTHON_MODULE(finleycpp) Line 138  BOOST_PYTHON_MODULE(finleycpp)
138        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
139        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)        .def("newOperator",&finley::MeshAdapter::newSystemMatrix)
140        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)        .def("getSystemMatrixTypeId",&finley::MeshAdapter::getSystemMatrixTypeId)
141          .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("saveMM",&finley::SystemMatrixAdapter::saveMM);        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
154          .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
155    
156  }  }

Legend:
Removed from v.102  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26