Changeset 3185 for inundation/parallel/parallel_shallow_water.py
- Timestamp:
- Jun 20, 2006, 1:54:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/parallel_shallow_water.py
r3117 r3185 29 29 from pyvolution.shallow_water import * 30 30 from Numeric import zeros, Float, Int, ones, allclose, array 31 from pypar_dist import pypar32 31 #from pypar_dist import pypar 32 import pypar 33 33 34 34 class Parallel_Domain(Domain): … … 98 98 """ 99 99 100 101 Domain.update_timestep(self, yieldstep, finaltime) 100 #LINDA: 101 # Moved below so timestep is found before doing update 102 103 #Domain.update_timestep(self, yieldstep, finaltime) 102 104 103 105 import time … … 118 120 self.communication_broadcast_time += time.time()-t0 119 121 120 122 # LINDA: 123 # Moved timestep to here 124 125 Domain.update_timestep(self, yieldstep, finaltime) 121 126 122 127 … … 124 129 """Calculate local timestep 125 130 """ 131 132 # LINDA: Moved below so timestep is updated before 133 # calculating statistic 126 134 127 135 #Compute minimal timestep on local process 128 Domain.update_timestep(self, yieldstep, finaltime)136 #Domain.update_timestep(self, yieldstep, finaltime) 129 137 130 138 pypar.barrier() … … 170 178 171 179 self.timestep = self.global_timestep[0] 172 180 181 # LINDA: 182 # update local stats now 183 184 #Compute minimal timestep on local process 185 Domain.update_timestep(self, yieldstep, finaltime) 173 186 174 187 #update_timestep = update_timestep_1
Note: See TracChangeset
for help on using the changeset viewer.