Ignore:
Timestamp:
Oct 19, 2006, 6:21:11 PM (18 years ago)
Author:
ole
Message:

Retired modify_boundary (now rolled into set_boundary).
Got okushiri_parallel to run correctly and timed the speedup (6.5 on 8 procs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/okushiri_parallel.py

    r3785 r3829  
    2929#-------------------------
    3030domain = Domain(project.mesh_filename, use_cache=True, verbose=True)
    31 domain.set_name('okushiri_parallel')
    32 domain.set_minimum_storable_height(0.001)
    33 domain.set_default_order(2)
    34 print domain.statistics()
    35 
    3631
    3732#-------------------------
     
    4641                    use_cache = True)
    4742
    48 #-------------------------
    49 # Boundary Conditions
    50 #-------------------------
    51 Br = Reflective_boundary(domain)
    52 
    53 domain.set_boundary({'wave': None,  # Bind this one later
    54                      'wall': Br})
    55 
    5643
    5744#-------------------------
     
    6047domain = distribute(domain)
    6148
     49# Parameters
     50domain.set_name('okushiri_parallel')
     51domain.set_minimum_storable_height(0.001)
     52domain.set_default_order(2)
     53domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK)
    6254
    63 # Bind boundary, that cannot be fully specified before distribution.
     55# Set old (pre Sep 2006) defaults for limiters
     56domain.beta_w      = 0.9
     57domain.beta_w_dry  = 0.9
     58domain.beta_uh     = 0.9
     59domain.beta_uh_dry = 0.9
     60domain.beta_vh     = 0.9
     61domain.beta_vh_dry = 0.9
     62
     63
     64#------------------------------------------------------------------------------
     65# Setup boundary conditions
     66# (MUST currently happen after domain has been distributed)
     67#------------------------------------------------------------------------------
     68
     69Br = Reflective_boundary(domain)      # Solid reflective wall
     70
    6471function = file_function(project.boundary_filename[:-4] + '.tms',
    6572                         domain,
     
    6774
    6875Bts = Transmissive_Momentum_Set_Stage_boundary(domain, function)
    69 domain.modify_boundary({'wave': Bts})
     76
     77domain.set_boundary({'wave': Bts,  # Bind this one later
     78                     'wall': Br})
    7079
    7180
Note: See TracChangeset for help on using the changeset viewer.