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

Changed quantity name 'level' to 'stage'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/analytical solutions/Analytical solution_wave_runup.py

    r550 r774  
    115115    return [stage, uh, vh]
    116116
    117 def boundary_level(t):
     117def boundary_stage(t):
    118118    x = -200
    119119    return stage_setup(x,t)
     
    137137
    138138#Set the water depth
    139 def level(x,y):
     139def stage(x,y):
    140140    z = x_slope(x,y)
    141141    n = x.shape[0]
     
    149149    return w   
    150150
    151 domain.set_quantity('level', level)
     151domain.set_quantity('stage', stage)
    152152
    153153
     
    155155#Set up boundary conditions
    156156Br = Reflective_boundary(domain)
    157 Bw = Time_boundary(domain, boundary_level)
     157Bw = Time_boundary(domain, boundary_stage)
    158158domain.set_boundary({'left': Bw, 'external': Br})
    159159
     
    165165for t in domain.evolve(yieldstep = 1., finaltime = 100):
    166166    domain.write_time()
    167     print boundary_level(domain.time)
     167    print boundary_stage(domain.time)
    168168   
    169169print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.