Ignore:
Timestamp:
Jan 21, 2005, 2:40:39 PM (20 years ago)
Author:
ole
Message:

Changed quantity name 'level' to 'stage'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_interpolate_sww.py

    r631 r773  
    4646
    4747        bed = domain.quantities['elevation'].vertex_values
    48         level = zeros(bed.shape, Float)
     48        stage = zeros(bed.shape, Float)
    4949
    5050        h = 0.3
    51         for i in range(level.shape[0]):
     51        for i in range(stage.shape[0]):
    5252            if i % 2 == 0:           
    53                 level[i,:] = bed[i,:] + h
     53                stage[i,:] = bed[i,:] + h
    5454            else:
    55                 level[i,:] = bed[i,:]
     55                stage[i,:] = bed[i,:]
    5656               
    57         domain.set_quantity('level', level)
     57        domain.set_quantity('stage', stage)
    5858
    5959        domain.distribute_to_vertices_and_edges()   
     
    8787        sww = get_dataobject(self.domain)
    8888        sww.store_connectivity()
    89         sww.store_timestep('level')
     89        sww.store_timestep('stage')
    9090        self.domain.time = 2.
    91         sww.store_timestep('level')
     91        sww.store_timestep('stage')
    9292
    9393        #Check contents
     
    154154        sww = get_dataobject(self.domain)
    155155        sww.store_connectivity()
    156         sww.store_timestep('level')
     156        sww.store_timestep('stage')
    157157        self.domain.time = 2.
    158         sww.store_timestep('level')
     158        sww.store_timestep('stage')
    159159
    160160        #print "self.domain.filename",self.domain.filename
Note: See TracChangeset for help on using the changeset viewer.