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

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

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

revision 1023 by gross, Tue Mar 13 05:43:36 2007 UTC revision 1137 by gross, Thu May 10 08:11:31 2007 UTC
# Line 17  Line 17 
17  #include "DataConstant.h"  #include "DataConstant.h"
18  #include "DataException.h"  #include "DataException.h"
19  #ifdef USE_NETCDF  #ifdef USE_NETCDF
20  #include <netcdfcpp.h>  #include "netcdfcpp.h"
21  #endif  #endif
22    
23  using namespace std;  using namespace std;
# Line 364  DataTagged::toString() const Line 364  DataTagged::toString() const
364      tempView.setOffset(i->second);      tempView.setOffset(i->second);
365      temp << tempView.toString() << endl;      temp << tempView.toString() << endl;
366    }    }
367    return temp.str();    return string(temp.str());
368  }  }
369    
370  DataArrayView::ValueType::size_type  DataArrayView::ValueType::size_type
# Line 557  DataTagged::eigenvalues_and_eigenvectors Line 557  DataTagged::eigenvalues_and_eigenvectors
557  }  }
558    
559  void  void
560    DataTagged::setToZero(){
561        DataArrayView::ValueType::size_type n=m_data.size();
562        for (int i=0; i<n ;++i) m_data[i]=0.;
563    }
564    
565    void
566  DataTagged::dump(const std::string fileName) const  DataTagged::dump(const std::string fileName) const
567  {  {
568     #ifdef PASO_MPI     #ifdef PASO_MPI

Legend:
Removed from v.1023  
changed lines
  Added in v.1137

  ViewVC Help
Powered by ViewVC 1.1.26