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

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

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

revision 983 by gross, Tue Feb 20 02:49:08 2007 UTC revision 1023 by gross, Tue Mar 13 05:43:36 2007 UTC
# Line 15  Line 15 
15  #include "DataException.h"  #include "DataException.h"
16  #include "DataConstant.h"  #include "DataConstant.h"
17  #include "DataTagged.h"  #include "DataTagged.h"
18    #ifdef USE_NETCDF
19  #include <netcdfcpp.h>  #include <netcdfcpp.h>
20    #endif
21    
22  #include <boost/python/extract.hpp>  #include <boost/python/extract.hpp>
23    
# Line 621  DataExpanded::dump(const std::string fil Line 623  DataExpanded::dump(const std::string fil
623     #ifdef PASO_MPI     #ifdef PASO_MPI
624     throw DataException("Error - DataExpanded:: dump is not implemented for MPI yet.");     throw DataException("Error - DataExpanded:: dump is not implemented for MPI yet.");
625     #endif     #endif
626       #ifdef USE_NETCDF
627     const int ldims=2+DataArrayView::maxRank;     const int ldims=2+DataArrayView::maxRank;
628     const NcDim* ncdims[ldims];     const NcDim* ncdims[ldims];
629     NcVar *var, *ids;     NcVar *var, *ids;
# Line 681  DataExpanded::dump(const std::string fil Line 684  DataExpanded::dump(const std::string fil
684          throw DataException("Error - DataExpanded:: appending variable to netCDF file failed.");          throw DataException("Error - DataExpanded:: appending variable to netCDF file failed.");
685     if (! (var->put(&m_data[0],dims)) )     if (! (var->put(&m_data[0],dims)) )
686          throw DataException("Error - DataExpanded:: copy data to netCDF buffer failed.");          throw DataException("Error - DataExpanded:: copy data to netCDF buffer failed.");
687       #else
688       throw DataException("Error - DataExpanded:: dump is not configured with netCDF. Please contact your installation manager.");
689       #endif
690  }  }
691  }  // end of namespace  }  // end of namespace

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

  ViewVC Help
Powered by ViewVC 1.1.26