Ignore:
Timestamp:
Jun 19, 2006, 10:20:39 AM (18 years ago)
Author:
sexton
Message:

minor update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/util.py

    r3150 r3176  
    699699                          verbose = True,
    700700                          use_cache = True)
    701     
     701 
    702702        index = swwfile.rfind(sep)
    703703        file_loc.append(swwfile[:index+1])
     
    748748        if line11[i].strip('\n').strip(' ') == 'Name': name_index = i
    749749        if line11[i].strip('\n').strip(' ') == 'Elevation': elev_index = i
    750    
     750
    751751    for line in lines[1:]:
    752752        fields = line.split(',')
     
    864864                    z = f(t, point_id = k)[1]
    865865                    uh = f(t, point_id = k)[2]
    866                     vh = f(t, point_id = k)[3]     
     866                    vh = f(t, point_id = k)[3]
    867867                    depth = w-z     
    868868                    m = sqrt(uh*uh + vh*vh)   
    869                     if m < 0.001:
     869                    if depth < 0.001:
    870870                        vel = 0.0
    871871                    else:
     
    886886                    if w < min_stage: min_stage = w
    887887                    if m > max_momentum: max_momentum = m
    888                     if vel > max_speed:
    889                         last_i = i
    890                         last_k = k
    891                         max_speed = vel
     888                    if vel > max_speed: max_speed = vel
    892889
    893890            max_stages.append(max_stage)
Note: See TracChangeset for help on using the changeset viewer.