Ignore:
Timestamp:
Nov 9, 2006, 12:51:08 PM (17 years ago)
Author:
ole
Message:

More cleanup and refactoring. Also adhered to style guide for comparisons to
singletons such as None.

File:
1 edited

Legend:

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

    r3945 r3956  
    13481348        quantity = Quantity(domain,[[1,1,1],[2,2,2],[3,3,3],
    13491349                                    [4,4,4],[5,5,5],[6,6,6]])
     1350
     1351
     1352        # Check that constants work
     1353        value = 7
     1354        indices = [1]
     1355        quantity.set_values(value,
     1356                            location = 'centroids',
     1357                            indices = indices)
     1358        #print "quantity.centroid_values",quantity.centroid_values
     1359        assert allclose(quantity.centroid_values, [1,7,3,4,5,6])
     1360       
    13501361        value = [7]
    13511362        indices = [1]
Note: See TracChangeset for help on using the changeset viewer.