Ignore:
Timestamp:
Jun 30, 2009, 2:07:41 PM (15 years ago)
Author:
ole
Message:

Merged numpy branch back into the trunk.

In ~/sandpit/anuga/anuga_core/source
svn merge -r 6246:HEAD ../../branches/numpy .

In ~/sandpit/anuga/anuga_validation
svn merge -r 6417:HEAD ../branches/numpy_anuga_validation .

In ~/sandpit/anuga/misc
svn merge -r 6809:HEAD ../branches/numpy_misc .

For all merges, I used numpy version where conflicts existed

The suites test_all.py (in source/anuga) and validate_all.py passed using Python2.5 with numpy on my Ubuntu Linux box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/config.py

    r7055 r7276  
    44import os
    55import sys
     6
    67
    78################################################################################
     
    162163                             # Too large (100) creates 'flopping' water
    163164                             # Too small (0) creates 'creep'
    164                            
     165
    165166maximum_froude_number = 100.0 # To be used in limiters.
    166167
     
    183184
    184185################################################################################
     186# NetCDF-specific type constants.  Used when defining NetCDF file variables.
     187################################################################################
     188
     189netcdf_char = 'c'
     190netcdf_byte = 'b'
     191netcdf_int = 'i'
     192netcdf_float = 'd'
     193netcdf_float64 = 'd'
     194netcdf_float32 = 'f'
     195
     196################################################################################
    185197# Dynamically-defined constants.
    186198################################################################################
     
    193205# Code to set the write mode depending on
    194206# whether Scientific.IO supports large NetCDF files
    195 s = """from Scientific.IO.NetCDF import NetCDFFile; fid = NetCDFFile('tmpfilenamexx', 'wl')"""
     207s = """
     208import os
     209from Scientific.IO.NetCDF import NetCDFFile
     210fid = NetCDFFile('tmpfilenamexx', 'wl')
     211fid.close()
     212os.remove('tmpfilenamexx')
     213"""
    196214
    197215# Need to run in a separate process due an
Note: See TracChangeset for help on using the changeset viewer.