Changeset 3645


Ignore:
Timestamp:
Sep 21, 2006, 2:56:18 PM (18 years ago)
Author:
ole
Message:

Work on okushiri parallel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/okushiri_parallel.py

    r3641 r3645  
    113113Br = Reflective_boundary(domain)
    114114
    115 function = file_function(project.boundary_filename[:-4] + '.tms',
    116                          domain,
    117                          verbose=True)
     115# Note this boundary cannot be fully specified here and
     116# distributed without problem.
     117#Bts = Transmissive_Momentum_Set_Stage_boundary(domain, function)
    118118
    119 # Note this boundary can be fully specified here and
    120 # distributed without problem.
    121 Bts = Transmissive_Momentum_Set_Stage_boundary(domain, function)
    122 
    123 domain.set_boundary({'wave': Bts, 'wall': Br})
     119domain.set_boundary({'wave': None,  # Bind this one later
     120                     'wall': Br})
    124121
    125122
     
    127124# Distribute domain
    128125#-------------------------
    129 domain = distribute(domain)
     126if numprocs > 1:
     127    domain = distribute(domain)
    130128
     129function = file_function(project.boundary_filename[:-4] + '.tms',
     130                         domain,
     131                         verbose=True)
     132
     133Bts = Transmissive_Momentum_Set_Stage_boundary(domain, function)
     134domain.modify_boundary({'wave': Bts})
    131135
    132136#-------------------------
Note: See TracChangeset for help on using the changeset viewer.