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