/[escript]/trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /trunk/escript/src/escriptcpp.cpp

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

revision 1426 by trankine, Wed Feb 27 06:12:15 2008 UTC revision 1800 by ksteube, Thu Sep 18 05:28:20 2008 UTC
# Line 23  Line 23 
23  #include "AbstractSystemMatrix.h"  #include "AbstractSystemMatrix.h"
24  #include "AbstractTransportProblem.h"  #include "AbstractTransportProblem.h"
25  #include "DataVector.h"  #include "DataVector.h"
26    #include "paso/Paso_MPI.h"
27    
28  extern "C" {  extern "C" {
29  #include "escript/blocktimer.h"  #include "escript/blocktimer.h"
# Line 84  BOOST_PYTHON_MODULE(escriptcpp) Line 85  BOOST_PYTHON_MODULE(escriptcpp)
85    def("blocktimer_increment",blocktimer_increment);    def("blocktimer_increment",blocktimer_increment);
86    def("blocktimer_time",blocktimer_time);    def("blocktimer_time",blocktimer_time);
87    def("getVersion",escript::getSvnVersion);    def("getVersion",escript::getSvnVersion);
88      def("printParallelThreadCounts",escript::printParallelThreadCnt);
89    
90    
91    //    //
# Line 101  BOOST_PYTHON_MODULE(escriptcpp) Line 103  BOOST_PYTHON_MODULE(escriptcpp)
103       .def("saveDX",&escript::AbstractDomain::saveDX)       .def("saveDX",&escript::AbstractDomain::saveDX)
104       .def("getMPISize",&escript::AbstractDomain::getMPISize)       .def("getMPISize",&escript::AbstractDomain::getMPISize)
105       .def("getMPIRank",&escript::AbstractDomain::getMPIRank)       .def("getMPIRank",&escript::AbstractDomain::getMPIRank)
106         .def("getMPIComm",&escript::AbstractDomain::getMPIComm)
107    
108       .def(self == self)       .def(self == self)
109       .def(self != self);       .def(self != self);
# Line 124  BOOST_PYTHON_MODULE(escriptcpp) Line 127  BOOST_PYTHON_MODULE(escriptcpp)
127    fs_definer.def("setTags",&escript::FunctionSpace::setTags);    fs_definer.def("setTags",&escript::FunctionSpace::setTags);
128    fs_definer.def("getTagFromDataPointNo",    fs_definer.def("getTagFromDataPointNo",
129                   &escript::FunctionSpace::getTagFromDataPointNo);                   &escript::FunctionSpace::getTagFromDataPointNo);
130  #ifdef DEBUG_PY_STRINGS    fs_definer.def("getReferenceIDFromDataPointNo", &escript::FunctionSpace::getReferenceIDFromDataPointNo);
131    fs_definer.def("__str__",&escript::FunctionSpace::toPyString);    fs_definer.def("getListOfTags",&escript::FunctionSpace::getListOfTags);
132  #else    fs_definer.def("__str__", &escript::FunctionSpace::toString);
   fs_definer.def("__str__",  
                  &escript::FunctionSpace::toString,  
                  return_value_policy<copy_const_reference>());  
 #endif  
133    fs_definer.def(self == self);    fs_definer.def(self == self);
134    fs_definer.def(self != self);    fs_definer.def(self != self);
135    //    //
# Line 163  BOOST_PYTHON_MODULE(escriptcpp) Line 162  BOOST_PYTHON_MODULE(escriptcpp)
162      .def("expand",&escript::Data::expand)      .def("expand",&escript::Data::expand)
163      .def("tag",&escript::Data::tag)      .def("tag",&escript::Data::tag)
164      .def("copy",&escript::Data::copy)      .def("copy",&escript::Data::copy)
165        .def("copy",&escript::Data::copySelf,return_value_policy<manage_new_object>())
166      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToPyObject)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToPyObject)
167      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToArray)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToArray)
168      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)
# Line 174  BOOST_PYTHON_MODULE(escriptcpp) Line 174  BOOST_PYTHON_MODULE(escriptcpp)
174      .def("saveDX",&escript::Data::saveDX)      .def("saveDX",&escript::Data::saveDX)
175      .def("saveVTK",&escript::Data::saveVTK)      .def("saveVTK",&escript::Data::saveVTK)
176      .def("getTagNumber",&escript::Data::getTagNumber)      .def("getTagNumber",&escript::Data::getTagNumber)
     .def("archiveData",&escript::Data::archiveData)  
     .def("extractData",&escript::Data::extractData)  
177      // Unary functions for Data      // Unary functions for Data
178      .def("_interpolate",&escript::Data::interpolate)      .def("_interpolate",&escript::Data::interpolate)
179      .def("_grad",&escript::Data::gradOn)      .def("_grad",&escript::Data::gradOn)

Legend:
Removed from v.1426  
changed lines
  Added in v.1800

  ViewVC Help
Powered by ViewVC 1.1.26