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

revision 4113 by jfenwick, Tue Nov 20 07:04:11 2012 UTC revision 4114 by caltinay, Fri Dec 14 04:24:46 2012 UTC
# Line 2303  Data::calc_maxGlobalDataPoint(int& ProcN Line 2303  Data::calc_maxGlobalDataPoint(int& ProcN
2303  #endif  #endif
2304  }  }
2305    
 void  
 Data::saveDX(std::string fileName) const  
 {  
     if (isEmpty())  
     {  
         throw DataException("Error - Operations not permitted on instances of DataEmpty.");  
     }  
     if (isLazy())  
     {  
         Data temp(*this);  // to get around the fact that you can't resolve a const Data  
         temp.resolve();  
         temp.saveDX(fileName);  
         return;  
     }  
     bp::dict args;  
     args["data"]=bp::object(this);  
     getDomain()->saveDX(fileName,args);  
 }  
   
 void  
 Data::saveVTK(std::string fileName) const  
 {  
     if (isEmpty())  
     {  
         throw DataException("Error - Operations not permitted on instances of DataEmpty.");  
     }  
     if (isLazy())  
     {  
         Data temp(*this);  // to get around the fact that you can't resolve a const Data  
         temp.resolve();  
         temp.saveVTK(fileName);  
         return;  
     }  
     bp::dict args;  
     args["data"]=bp::object(this);  
     getDomain()->saveVTK(fileName,args,"","");  
 }  
   
   
   
2306  Data&  Data&
2307  Data::operator+=(const Data& right)  Data::operator+=(const Data& right)
2308  {  {

Legend:
Removed from v.4113  
changed lines
  Added in v.4114

  ViewVC Help
Powered by ViewVC 1.1.26