/[escript]/trunk-mpi-branch/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /trunk-mpi-branch/escript/src/DataConstant.cpp

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

revision 1006 by ksteube, Tue Feb 13 22:56:57 2007 UTC revision 1007 by gross, Mon Mar 5 01:00:53 2007 UTC
# Line 268  void Line 268  void
268  DataConstant::dump(const std::string fileName) const  DataConstant::dump(const std::string fileName) const
269  {  {
270     #ifdef PASO_MPI     #ifdef PASO_MPI
271     throw DataException("Error - DataConstant:: dump is not implemented for MPI yet.")     throw DataException("Error - DataConstant:: dump is not implemented for MPI yet.");
272     #endif     #else
273     const NcDim* ncdims[DataArrayView::maxRank];     const NcDim* ncdims[DataArrayView::maxRank];
274     NcVar* var;     NcVar* var;
275     int rank = getPointDataView().getRank();     int rank = getPointDataView().getRank();
# Line 322  DataConstant::dump(const std::string fil Line 322  DataConstant::dump(const std::string fil
322      throw DataException("Error - DataConstant:: appending variable to netCDF file failed.");      throw DataException("Error - DataConstant:: appending variable to netCDF file failed.");
323     if (! (var->put(&m_data[0],dims)) )     if (! (var->put(&m_data[0],dims)) )
324      throw DataException("Error - DataConstant:: copy data to netCDF buffer failed.");      throw DataException("Error - DataConstant:: copy data to netCDF buffer failed.");
325       #endif
326  }  }
327    
328  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1006  
changed lines
  Added in v.1007

  ViewVC Help
Powered by ViewVC 1.1.26