Ignore:
Timestamp:
Jul 4, 2005, 5:57:46 PM (19 years ago)
Author:
steve
Message:

In the process of copying stage from full domain to sub domains

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/parallel/parallel_shallow_water.py

    r1563 r1575  
    2525
    2626from shallow_water import *
    27 Shallow_Water_Domain = Domain
    2827from Numeric import zeros, Float, Int, ones, allclose, array
    2928import pypar
    3029
    3130
    32 class Parallel_Shallow_Water_Domain(Shallow_Water_Domain):
     31class Parallel_Domain(Domain):
    3332
    3433    def __init__(self, coordinates, vertices, boundary = None,
     
    3837        self.numproc   = pypar.size()
    3938
    40         Shallow_Water_Domain.__init__(self, coordinates, vertices, boundary)
     39        Domain.__init__(self, coordinates, vertices, boundary)
    4140
    4241        N = self.number_of_elements
     
    6665
    6766    def check_integrity(self):
    68         Shallow_Water_Domain.check_integrity(self)
     67        Domain.check_integrity(self)
    6968
    7069        msg = 'Will need to check global and local numbering'
     
    7877
    7978        # Calculate local timestep
    80         Shallow_Water_Domain.update_timestep(self, yieldstep, finaltime)
     79        Domain.update_timestep(self, yieldstep, finaltime)
    8180
    8281        import time
     
    108107        # the separate processors
    109108
    110         import weave
    111         from weave import converters
    112109
    113110        import time
     
    202199
    203200        #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):
    205202
    206203            #Pass control on to outer loop for more specific actions
    207204            yield(t)
    208205
    209 
Note: See TracChangeset for help on using the changeset viewer.