/[escript]/trunk/ripley/src/Rectangle.cpp
ViewVC logotype

Diff of /trunk/ripley/src/Rectangle.cpp

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

revision 4378 by caltinay, Wed Apr 24 06:21:42 2013 UTC revision 4477 by caltinay, Thu Jun 20 02:41:28 2013 UTC
# Line 17  Line 17 
17  #include <paso/SystemMatrix.h>  #include <paso/SystemMatrix.h>
18  #include <esysUtils/esysFileWriter.h>  #include <esysUtils/esysFileWriter.h>
19    
20    #include <boost/scoped_array.hpp>
21    
22  #ifdef USE_NETCDF  #ifdef USE_NETCDF
23  #include <netcdfcpp.h>  #include <netcdfcpp.h>
24  #endif  #endif
# Line 209  void Rectangle::readNcGrid(escript::Data Line 211  void Rectangle::readNcGrid(escript::Data
211          throw RipleyException("readNcGrid(): only scalar data supported");          throw RipleyException("readNcGrid(): only scalar data supported");
212    
213      const int dims = var->num_dims();      const int dims = var->num_dims();
214      const long *edges = var->edges();      boost::scoped_array<long> edges(var->edges());
215    
216      // is this a slice of the data object (dims!=2)?      // is this a slice of the data object (dims!=2)?
217      // note the expected ordering of edges (as in numpy: y,x)      // note the expected ordering of edges (as in numpy: y,x)

Legend:
Removed from v.4378  
changed lines
  Added in v.4477

  ViewVC Help
Powered by ViewVC 1.1.26