Ignore:
Timestamp:
Mar 21, 2006, 2:55:56 PM (19 years ago)
Author:
ole
Message:

Allowed None boundary objects (to accommodate ghost elements in the parallel implementation).
For sequential implementations, None would pave the way for a default boundary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r2551 r2569  
    657657        #FIXME: Boundary objects should not include ghost nodes.
    658658        for i, ((vol_id, edge_id), B) in enumerate(self.boundary_objects):
    659             q = B.evaluate(vol_id, edge_id)
    660 
    661             for j, name in enumerate(self.conserved_quantities):
    662                 Q = self.quantities[name]
    663                 Q.boundary_values[i] = q[j]
     659            if B is None:
     660                print 'WARNING: Ignored boundary segment %d (None)'
     661            else:               
     662                q = B.evaluate(vol_id, edge_id)
     663
     664                for j, name in enumerate(self.conserved_quantities):
     665                    Q = self.quantities[name]
     666                    Q.boundary_values[i] = q[j]
    664667
    665668
Note: See TracChangeset for help on using the changeset viewer.