Ignore:
Timestamp:
Sep 6, 2004, 1:57:41 PM (21 years ago)
Author:
ole
Message:

Cleaned up distribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/domain.py

    r272 r274  
    219219
    220220
     221    def get_name(self):
     222        return self.filename   
     223   
    221224
    222225
     
    316319           
    317320    def evolve_to_end(self, finaltime = 1.0):
    318         """Iterate evolve generator all the way to the end
     321        """Iterate evolve all the way to the end
    319322        """
    320323
     
    393396    def compute_forcing_terms(self):         
    394397        """If there are any forcing functions driving the system
    395         they should be defined in Domain subclass
     398        they should be defined in Domain subclass and appended to
     399        the list self.forcing_terms
    396400        """
    397401
     
    421425
    422426            #Clean up
     427            #Note that Q.explicit_update is reset by compute_fluxes           
    423428            Q.semi_implicit_update[:] = 0.0
    424             Q.explicit_update[:] = 0.0 #Unnecessary as fluxes will set it
     429
    425430           
    426431
     
    449454##############################################
    450455#Initialise module
    451 
    452 #C-extensions
    453 #import compile
    454 #if compile.can_use_C_extension('domain_ext.c'):
    455 #    compute_fluxes = compute_fluxes_c
    456     #distribute_to_vertices_and_edges = distribute_to_vertices_and_edges_c
    457     #update_conserved_quantities = update_conserved_quantities_c
    458 #else:
    459 #    from shallow_water import compute_fluxes
    460     #from python_versions import distribute_to_vertices_and_edges
    461     #from python_versions import update_conserved_quantities
    462 
    463456
    464457#Optimisation with psyco
Note: See TracChangeset for help on using the changeset viewer.