Changeset 5617


Ignore:
Timestamp:
Aug 6, 2008, 9:49:29 AM (16 years ago)
Author:
kristy
Message:

Inserted new mesh triangle over dredged area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/perth/run_perth.py

    r5607 r5617  
    115115   # barrier()
    116116
    117         covariance_value,alpha = find_optimal_smoothing_parameter (data_file= kwargs['elevation_file'],
    118                                 alpha_list=[0.001, 0.01, 0.1, 0.15, 0.2, 0.25, 0.3, 0.4, 0.5],
    119                                 mesh_file = project.meshes_dir_name+'.msh')
    120         print 'optimal alpha', covariance_value,alpha       
    121 
     117##        covariance_value,alpha = find_optimal_smoothing_parameter (data_file= kwargs['elevation_file'],
     118##                                alpha_list=[0.001, 0.01, 0.1, 0.15, 0.2, 0.25, 0.3, 0.4, 0.5],
     119##                                mesh_file = project.meshes_dir_name+'.msh')
     120##        print 'optimal alpha', covariance_value,alpha       
    122121
    123122    #-------------------------------------------------------------------------
     
    196195    domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    197196    domain.tight_slope_limiters = 1
    198     #domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK)
    199197    print 'domain id', id(domain)
    200 
    201198
    202199    #-------------------------------------------------------------------------
     
    240237    t0 = time.time()
    241238
    242     using_sts_boundary = True
    243    
    244239    for t in domain.evolve(yieldstep = project.yieldstep, finaltime = kwargs['finaltime']
    245240                       ,skip_initial_step = False):
    246241        domain.write_time()
    247242        domain.write_boundary_statistics(tags = 'ocean')
    248         if using_sts_boundary is True:
    249             if Bf.values >= 99:
    250                 domain.set_boundary({'ocean': Bd})
    251                 using_sts_boundary = False
    252 
     243           
    253244    x, y = domain.get_maximum_inundation_location()
    254245    q = domain.get_maximum_inundation_elevation()
     
    282273    kwargs['output_dir']=project.output_run_time_dir
    283274    kwargs['elevation_file']=project.combined_dir_name+'.pts'
    284 #    kwargs['elevation_file']=project.combined_small_dir_name + '.pts'
    285275    kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww'
    286276    kwargs['file_name']=project.home+'detail.csv'
Note: See TracChangeset for help on using the changeset viewer.