Ignore:
Timestamp:
Nov 19, 2010, 2:53:46 PM (14 years ago)
Author:
steve
Message:

Added in a unit test for inlet operator

Location:
trunk/anuga_core/source/anuga/shallow_water
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/forcing.py

    r7967 r8073  
    278278        from math import pi, cos, sin
    279279
     280        if domain.numproc > 1:
     281            msg = 'Not implemented to run in parallel'
     282            assert self.__parallel_safe(), msg
     283
    280284        if center is None:
    281285            msg = 'I got radius but no center.'
     
    510514
    511515
     516    def __parallel_safe(self):
     517
     518        return false
    512519##
    513520# @brief A class for rainfall forcing function.
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8068 r8073  
    173173
    174174        # Stored output
    175         self.store = True
     175        self.set_store(True)
    176176        self.set_store_vertices_uniquely(False)
    177177        self.quantities_to_be_stored = {'elevation': 1,
     
    222222
    223223
     224    def set_store(self, flag=True):
     225        """Set whether data saved to sww file.
     226        """
     227
     228        self.store = flag
     229
     230       
    224231    def set_sloped_mannings_function(self, flag=True):
    225232        """Set mannings friction function to use the sloped
Note: See TracChangeset for help on using the changeset viewer.