Changeset 5750


Ignore:
Timestamp:
Sep 9, 2008, 12:42:30 PM (16 years ago)
Author:
ole
Message:

Fixed yet another 32 - 64 bit issue with storage of integers in NetCDF

File:
1 edited

Legend:

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

    r5745 r5750  
    38933893    outfile.variables['x'][:] = x - geo_ref.get_xllcorner()
    38943894    outfile.variables['y'][:] = y - geo_ref.get_yllcorner()
    3895     outfile.variables['z'][:] = z
    3896     outfile.variables['elevation'][:] = z  #FIXME HACK
    3897     outfile.variables['volumes'][:] = volumes.astype(Int32) #On Opteron 64
     3895    outfile.variables['z'][:] = z # FIXME (Ole): Remove once viewer has been recompiled and changed to use elevation instead of z
     3896    outfile.variables['elevation'][:] = z 
     3897    outfile.variables['volumes'][:] = volumes.astype(Int32) # On Opteron 64
    38983898
    38993899    stage = outfile.variables['stage']
     
    52635263
    52645264    elevation = resize(elevation,outfile.variables['elevation'][:].shape)
    5265     outfile.variables['permutation'][:] = permutation
     5265    outfile.variables['permutation'][:] = permutation.astype(Int32) # On Opteron 64
    52665266    outfile.variables['x'][:] = x - geo_ref.get_xllcorner()
    52675267    outfile.variables['y'][:] = y - geo_ref.get_yllcorner()
Note: See TracChangeset for help on using the changeset viewer.