- Timestamp:
- Jul 4, 2005, 5:57:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/parallel/parallel_shallow_water.py
r1563 r1575 25 25 26 26 from shallow_water import * 27 Shallow_Water_Domain = Domain28 27 from Numeric import zeros, Float, Int, ones, allclose, array 29 28 import pypar 30 29 31 30 32 class Parallel_ Shallow_Water_Domain(Shallow_Water_Domain):31 class Parallel_Domain(Domain): 33 32 34 33 def __init__(self, coordinates, vertices, boundary = None, … … 38 37 self.numproc = pypar.size() 39 38 40 Shallow_Water_Domain.__init__(self, coordinates, vertices, boundary)39 Domain.__init__(self, coordinates, vertices, boundary) 41 40 42 41 N = self.number_of_elements … … 66 65 67 66 def check_integrity(self): 68 Shallow_Water_Domain.check_integrity(self)67 Domain.check_integrity(self) 69 68 70 69 msg = 'Will need to check global and local numbering' … … 78 77 79 78 # Calculate local timestep 80 Shallow_Water_Domain.update_timestep(self, yieldstep, finaltime)79 Domain.update_timestep(self, yieldstep, finaltime) 81 80 82 81 import time … … 108 107 # the separate processors 109 108 110 import weave111 from weave import converters112 109 113 110 import time … … 202 199 203 200 #Call basic machinery from parent class 204 for t in Shallow_Water_Domain.evolve(self, yieldstep, finaltime):201 for t in Domain.evolve(self, yieldstep, finaltime): 205 202 206 203 #Pass control on to outer loop for more specific actions 207 204 yield(t) 208 205 209
Note: See TracChangeset
for help on using the changeset viewer.