/[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

revision 1345 by ksteube, Wed Nov 14 07:53:34 2007 UTC revision 1364 by gross, Mon Dec 17 07:22:45 2007 UTC
# Line 23  extern "C" { Line 23  extern "C" {
23  #include "MeshAdapter.h"  #include "MeshAdapter.h"
24  #include "MeshAdapterFactory.h"  #include "MeshAdapterFactory.h"
25  #include "SystemMatrixAdapter.h"  #include "SystemMatrixAdapter.h"
26    #include "TransportProblemAdapter.h"
27    
28  #include "FinleyAdapterException.h"  #include "FinleyAdapterException.h"
29  // #include "esysUtils/EsysException.h"  // #include "esysUtils/EsysException.h"
# Line 94  BOOST_PYTHON_MODULE(finleycpp) Line 95  BOOST_PYTHON_MODULE(finleycpp)
95    def("ReadMesh",finley::readMesh,    def("ReadMesh",finley::readMesh,
96        (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),
97        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
98      def("ReadMeshMPI",finley::readMeshMPI,
99          (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),
100          return_value_policy<manage_new_object>());
101    
102    def("ReadGmsh",finley::readGmsh,    def("ReadGmsh",finley::readGmsh,
103        (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 135  BOOST_PYTHON_MODULE(finleycpp) Line 139  BOOST_PYTHON_MODULE(finleycpp)
139        arg("optimize")=true),        arg("optimize")=true),
140        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
141    
142    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));  
143    
144    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >    class_<finley::MeshAdapter, bases<escript::AbstractContinuousDomain> >
145        ("MeshAdapter",init<optional <Finley_Mesh*> >())        ("MeshAdapter",init<optional <Finley_Mesh*> >())
# Line 172  BOOST_PYTHON_MODULE(finleycpp) Line 176  BOOST_PYTHON_MODULE(finleycpp)
176        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)        .def("saveMM",&finley::SystemMatrixAdapter::saveMM)
177        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);        .def("saveHB",&finley::SystemMatrixAdapter::saveHB);
178    
179      class_<finley::TransportProblemAdapter, bases<escript::AbstractTransportProblem> >
180          ("OperatorAdapter",no_init)
181          .def("resetTransport",&finley::TransportProblemAdapter::resetTransport);
182    
183    
184    
185      register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));
186    
187  }  }

Legend:
Removed from v.1345  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC 1.1.26