/[escript]/branches/domexper/dudley/src/CPPAdapter/finleycpp.cpp
ViewVC logotype

Diff of /branches/domexper/dudley/src/CPPAdapter/finleycpp.cpp

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

temp/finley/src/CPPAdapter/finleycpp.cpp revision 1387 by trankine, Fri Jan 11 07:45:26 2008 UTC trunk/finley/src/CPPAdapter/finleycpp.cpp revision 1807 by ksteube, Thu Sep 25 01:04:51 2008 UTC
# Line 15  Line 15 
15    
16  #ifdef PASO_MPI  #ifdef PASO_MPI
17  #include <mpi.h>  #include <mpi.h>
18    #include "paso/Paso_MPI.h"
19  #endif  #endif
20  extern "C" {  extern "C" {
21  #include "../Finley.h"  #include "../Finley.h"
# Line 91  BOOST_PYTHON_MODULE(finleycpp) Line 92  BOOST_PYTHON_MODULE(finleycpp)
92    def("ReadMesh",finley::readMesh,    def("ReadMesh",finley::readMesh,
93        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),
94        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
   def("ReadMeshMPI",finley::readMeshMPI,  
       (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),  
       return_value_policy<manage_new_object>());  
95    
96    def("ReadGmsh",finley::readGmsh,    def("ReadGmsh",finley::readGmsh,
97        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),
# Line 146  BOOST_PYTHON_MODULE(finleycpp) Line 144  BOOST_PYTHON_MODULE(finleycpp)
144        .def("getDescription",&finley::MeshAdapter::getDescription)        .def("getDescription",&finley::MeshAdapter::getDescription)
145        .def("getDim",&finley::MeshAdapter::getDim)        .def("getDim",&finley::MeshAdapter::getDim)
146        .def("getDataShape",&finley::MeshAdapter::getDataShape)        .def("getDataShape",&finley::MeshAdapter::getDataShape)
147          .def("getNumDataPointsGlobal",&finley::MeshAdapter::getNumDataPointsGlobal)
148        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)        .def("addPDEToSystem",&finley::MeshAdapter::addPDEToSystem)
149        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)        .def("addPDEToLumpedSystem",&finley::MeshAdapter::addPDEToLumpedSystem)
150        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)        .def("addPDEToRHS",&finley::MeshAdapter::addPDEToRHS)
# Line 175  BOOST_PYTHON_MODULE(finleycpp) Line 174  BOOST_PYTHON_MODULE(finleycpp)
174        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
175    
176    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >    class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >
177        ("OperatorAdapter",no_init)        ("TransportProblemAdapter",no_init)
178          .def("getSafeTimeStepSize",&finley::TransportProblemAdapter::getSafeTimeStepSize)
179        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);        .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);
   
   
   
   
180  }  }

Legend:
Removed from v.1387  
changed lines
  Added in v.1807

  ViewVC Help
Powered by ViewVC 1.1.26