Ignore:
Timestamp:
Jun 20, 2006, 1:54:04 PM (18 years ago)
Author:
linda
Message:

Updated shallow water equation to broadcast timestep after flux
calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/parallel_shallow_water.py

    r3117 r3185  
    2929from pyvolution.shallow_water import *
    3030from Numeric import zeros, Float, Int, ones, allclose, array
    31 from pypar_dist import pypar
    32 
     31#from pypar_dist import pypar
     32import pypar
    3333
    3434class Parallel_Domain(Domain):
     
    9898        """
    9999
    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)
    102104
    103105        import time
     
    118120        self.communication_broadcast_time += time.time()-t0
    119121
    120 
     122        # LINDA:
     123        # Moved timestep to here
     124       
     125        Domain.update_timestep(self, yieldstep, finaltime)
    121126
    122127
     
    124129        """Calculate local timestep
    125130        """
     131
     132        # LINDA: Moved below so timestep is updated before
     133        # calculating statistic
    126134       
    127135        #Compute minimal timestep on local process
    128         Domain.update_timestep(self, yieldstep, finaltime)
     136        #Domain.update_timestep(self, yieldstep, finaltime)
    129137
    130138        pypar.barrier()
     
    170178
    171179        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)
    173186
    174187    #update_timestep = update_timestep_1
Note: See TracChangeset for help on using the changeset viewer.