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(); |
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 |