Ignore:
Timestamp:
Sep 20, 2009, 6:35:14 PM (15 years ago)
Author:
steve
Message:

Have been playing with using a slope limited velocity to calculate
fluxes (hence the addition of evolved_quantities as well as conserved
quantities.

But the commit is to fix a problem Rudy found with sww2dem. Seems
numpy.array2string is a little too clever, in that it summarizes
output if there is a long sequence of zeros to
[0.0, 0.0, 0.0, ... 0.0, 0.0 ,0.0] To get around this I have added
a call to numpy.set_options(threshold=sys.max_int) to turn this
behaviour off!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_quantity.py

    r7276 r7519  
    18671867
    18681868        x = num.array([1., 2., 3., 4.])
     1869        x += timestep*num.array( [4.0, 3.0, 2.0, 1.0] )       
    18691870        x /= denom
    1870         x += timestep*num.array( [4.0, 3.0, 2.0, 1.0] )
     1871
    18711872
    18721873        assert num.allclose( quantity.centroid_values, x)
Note: See TracChangeset for help on using the changeset viewer.