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

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

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

trunk/esys2/escript/src/Data/Data.cpp revision 151 by jgs, Thu Sep 22 01:55:00 2005 UTC trunk/escript/src/Data/Data.cpp revision 286 by gross, Thu Dec 1 06:40:20 2005 UTC
# Line 25  Line 25 
25  #include <functional>  #include <functional>
26  #include <math.h>  #include <math.h>
27    
28    #include <boost/python/dict.hpp>
29  #include <boost/python/str.hpp>  #include <boost/python/str.hpp>
30  #include <boost/python/extract.hpp>  #include <boost/python/extract.hpp>
31  #include <boost/python/long.hpp>  #include <boost/python/long.hpp>
# Line 1026  Data::atanh() const Line 1027  Data::atanh() const
1027  }  }
1028    
1029  Data  Data
1030  Data::log() const  Data::log10() const
1031  {  {
1032  #if defined DOPROF  #if defined DOPROF
1033    profData->unary++;    profData->unary++;
# Line 1035  Data::log() const Line 1036  Data::log() const
1036  }  }
1037    
1038  Data  Data
1039  Data::ln() const  Data::log() const
1040  {  {
1041  #if defined DOPROF  #if defined DOPROF
1042    profData->unary++;    profData->unary++;
# Line 1173  Data::minval() const Line 1174  Data::minval() const
1174  }  }
1175    
1176  Data  Data
 Data::length() const  
 {  
 #if defined DOPROF  
   profData->reduction2++;  
 #endif  
   Length len_func;  
   return dp_algorithm(len_func,0);  
 }  
   
 Data  
1177  Data::trace() const  Data::trace() const
1178  {  {
1179  #if defined DOPROF  #if defined DOPROF
# Line 1263  Data::calc_mindp(int& SampleNo, Line 1254  Data::calc_mindp(int& SampleNo,
1254  void  void
1255  Data::saveDX(std::string fileName) const  Data::saveDX(std::string fileName) const
1256  {  {
1257    getDomain().saveDX(fileName,*this);    boost::python::dict args;
1258      args["data"]=boost::python::object(this);
1259      getDomain().saveDX(fileName,args);
1260    return;    return;
1261  }  }
1262    
1263  void  void
1264  Data::saveVTK(std::string fileName) const  Data::saveVTK(std::string fileName) const
1265  {  {
1266    getDomain().saveVTK(fileName,*this);    boost::python::dict args;
1267      args["data"]=boost::python::object(this);
1268      getDomain().saveVTK(fileName,args);
1269    return;    return;
1270  }  }
1271    

Legend:
Removed from v.151  
changed lines
  Added in v.286

  ViewVC Help
Powered by ViewVC 1.1.26