Ignore:
Timestamp:
Aug 24, 2005, 1:49:47 PM (19 years ago)
Author:
ole
Message:

Embedded caching functionality within quantity.set_values and modified validation example lwru2.py to illustrate the advantages that can be gained from supervised caching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_advection.py

    r1556 r1753  
    7777        domain.check_integrity()
    7878
    79         domain.set_quantity('stage', [1.0], 'centroids')
     79        domain.set_quantity('stage', [1.0], location='centroids')
    8080
    8181        domain.distribute_to_vertices_and_edges()
     
    136136        #Populate boundary array with dirichlet conditions.
    137137        domain.neighbours = array([[1,-1,-2], [0,-3,-4]])
    138         domain.set_quantity('stage', [1.0, 0.0], 'centroids')
     138        domain.set_quantity('stage', [1.0, 0.0], location='centroids')
    139139        domain.distribute_to_vertices_and_edges()
    140140
Note: See TracChangeset for help on using the changeset viewer.