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

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

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

revision 1022 by phornby, Mon Mar 12 10:12:36 2007 UTC revision 1023 by gross, Tue Mar 13 05:43:36 2007 UTC
# Line 15  Line 15 
15    
16  #include <boost/python/extract.hpp>  #include <boost/python/extract.hpp>
17  #include <iostream>  #include <iostream>
18    #ifdef USE_NETCDF
19  #include <netcdfcpp.h>  #include <netcdfcpp.h>
20    #endif
21    
22  using namespace boost::python;  using namespace boost::python;
23    
# Line 73  load(const std::string fileName, Line 75  load(const std::string fileName,
75       const AbstractDomain& domain)       const AbstractDomain& domain)
76  {  {
77     #ifdef PASO_MPI     #ifdef PASO_MPI
78     throw DataException("Error - DataConstant:: dump is not implemented for MPI yet.")     throw DataException("Error - load :: not implemented for MPI yet.")
79     #endif     #endif
80    
81       #ifdef USE_NETCDF
82     NcAtt *type_att, *rank_att, *function_space_type_att;     NcAtt *type_att, *rank_att, *function_space_type_att;
83     // netCDF error handler     // netCDF error handler
84     NcError err(NcError::verbose_nonfatal);     NcError err(NcError::verbose_nonfatal);
# Line 269  load(const std::string fileName, Line 273  load(const std::string fileName,
273         throw DataException("Error - load:: unknown escript data type in netCDF file.");         throw DataException("Error - load:: unknown escript data type in netCDF file.");
274     }     }
275     return out;     return out;
276       #else
277       throw DataException("Error - load:: is not compiled with netCFD. Please contact your insatllation manager.");
278       #endif
279    }
280    
281    bool
282    loadConfigured()
283    {
284       #ifdef USE_NETCDF
285       return true;
286       #else
287       return false;
288       #endif
289  }  }
290    
291  Data  Data

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

  ViewVC Help
Powered by ViewVC 1.1.26