Changeset 7862


Ignore:
Timestamp:
Jun 19, 2010, 4:50:23 PM (14 years ago)
Author:
hudson
Message:

Fixed bug with incorrect float format for sww file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file/sww.py

    r7861 r7862  
    582582
    583583       
    584         self.write_dynamic_quantities(outfile, self.dynamic_quantities, times)
     584        self.write_dynamic_quantities(outfile, self.dynamic_quantities, times, \
     585                                        precis = sww_precision)
    585586
    586587
     
    787788                q_values = ensure_numeric(quant[q])
    788789               
    789                 x = q_values.astype(sww_precision)
    790                 outfile.variables[q][slice_index] = x
     790                q_retyped = q_values.astype(sww_precision)
     791                outfile.variables[q][slice_index] = q_retyped
    791792                   
    792793                # This updates the _range values
Note: See TracChangeset for help on using the changeset viewer.