Ignore:
Timestamp:
Dec 19, 2008, 10:38:08 AM (16 years ago)
Author:
rwilson
Message:

Changes to handle large files when Scientific.IO.NetCDF provides the feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_system.py

    r5878 r6086  
    1616from anuga.pmesh.mesh import Mesh
    1717from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_instance_to_domain_instance
    18 
     18from anuga.config import netcdf_mode_r, netcdf_mode_w, netcdf_mode_a
    1919
    2020
     
    114114
    115115        # do an assertion on the time of the produced sww file
    116         fid = NetCDFFile(filename, 'r')    #Open existing file for read
     116        fid = NetCDFFile(filename, netcdf_mode_r)    #Open existing file for read
    117117        times = fid.variables['time'][:]
    118118        #print "times", times
     
    165165
    166166        # do an assertion on the time of the produced sww file
    167         fid = NetCDFFile(filename, 'r')    #Open existing file for read
     167        fid = NetCDFFile(filename, netcdf_mode_r)    #Open existing file for read
    168168        times = fid.variables['time'][:]
    169169        stage = fid.variables['stage'][:]
Note: See TracChangeset for help on using the changeset viewer.