Ignore:
Timestamp:
Dec 19, 2005, 6:21:38 PM (19 years ago)
Author:
sexton
Message:

Unnecessary import deleted (Constant_height) as accounted for later in example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/examples/bedslope.py

    r2155 r2156  
    1010from pyvolution.mesh_factory import rectangular
    1111from pyvolution.shallow_water import Domain, Reflective_boundary,\
    12      Dirichlet_boundary, Constant_height, Time_boundary, Transmissive_boundary
    13 from Numeric import array
     12     Dirichlet_boundary, Time_boundary, Transmissive_boundary
    1413
    1514#Create basic mesh
     
    2221domain.store = True
    2322domain.filename = 'bedslope'
    24 domain.default_order=2
     23domain.default_order = 2
    2524
    2625#######################
    2726# Initial conditions
    28 domain.set_quantity('elevation', lambda x,y: -x/3)
     27def f(x,y):
     28    return -x/2
     29
     30domain.set_quantity('elevation', f)
    2931domain.set_quantity('friction', 0.1)
    3032
Note: See TracChangeset for help on using the changeset viewer.