Ignore:
Timestamp:
Nov 15, 2011, 11:37:36 PM (13 years ago)
Author:
steve
Message:

Got rid of those annoying double_scalar warnings in the windows code (just divide by zero warnings)

Location:
trunk/anuga_core/source/anuga/file_conversion
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion

    • Property svn:ignore set to
      .python_cache
  • trunk/anuga_core/source/anuga/file_conversion/dem2pts.py

    r8150 r8249  
    240240
    241241        if upper_index == lower_index + newcols:
    242             points[lower_index:upper_index, :] = tpoints
    243             elevation[lower_index:upper_index] = telev
     242            # Seems to be an error with the windows version of
     243            # Netcdf. The following gave errors
     244            #points[lower_index:upper_index, :] = tpoints
     245            #elevation[lower_index:upper_index] = telev
     246            # so used the following
     247            for index in range(newcols):
     248                points[index+lower_index, :] = tpoints[index,:]
     249                elevation[index+lower_index] = telev[index]
    244250
    245251    assert global_index == nopoints, 'index not equal to number of points'
Note: See TracChangeset for help on using the changeset viewer.