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

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

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

revision 4476 by caltinay, Thu Apr 25 04:44:14 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 294  void Brick::readNcGrid(escript::Data& ou Line 296  void Brick::readNcGrid(escript::Data& ou
296          throw RipleyException("readNcGrid(): only scalar data supported");          throw RipleyException("readNcGrid(): only scalar data supported");
297    
298      const int dims = var->num_dims();      const int dims = var->num_dims();
299      const long *edges = var->edges();      boost::scoped_array<long> edges(var->edges());
300    
301      // is this a slice of the data object (dims!=3)?      // is this a slice of the data object (dims!=3)?
302      // note the expected ordering of edges (as in numpy: z,y,x)      // note the expected ordering of edges (as in numpy: z,y,x)

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

  ViewVC Help
Powered by ViewVC 1.1.26