/[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 4285 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4286 by caltinay, Thu Mar 7 04:28:11 2013 UTC
# Line 352  load(const std::string fileName, Line 352  load(const std::string fileName,
352     } else if (type == 2) {     } else if (type == 2) {
353        /* expanded data */        /* expanded data */
354        if ( ! (ndims == rank + 2) )        if ( ! (ndims == rank + 2) )
355            throw DataException("Error - load:: illegal number of dimensions for exanded data in netCDF file.");            throw DataException("Error - load:: illegal number of dimensions for expanded data in netCDF file.");
356        if ( ! (num_samples_dim = dataFile.get_dim("num_samples") ) )        if ( ! (num_samples_dim = dataFile.get_dim("num_samples") ) )
357            throw DataException("Error - load:: unable to recover number of samples from netCDF file.");            throw DataException("Error - load:: unable to recover number of samples from netCDF file.");
358        num_samples = num_samples_dim->size();        num_samples = num_samples_dim->size();

Legend:
Removed from v.4285  
changed lines
  Added in v.4286

  ViewVC Help
Powered by ViewVC 1.1.26