Changeset 4867


Ignore:
Timestamp:
Nov 30, 2007, 11:47:13 AM (17 years ago)
Author:
ole
Message:

Added verbose keyword to the experimental Inflow class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r4836 r4867  
    15651565                 center=None, radius=None,
    15661566                 flow=0.0,
    1567                  quantity_name = 'stage'):
     1567                 quantity_name='stage',
     1568                 verbose=False):
    15681569
    15691570        from math import pi
     
    15821583        self.flow = flow
    15831584        self.quantity_name = quantity_name
     1585        self.verbose = verbose
    15841586   
    15851587    def __call__(self, domain):
     
    16051607
    16061608        # Now flow is a number
     1609        if self.verbose is True:
     1610            print 'Inflow at time = %.2f = %f' %(domain.get_time(),
     1611                                                 flow)
    16071612       
    16081613        quantity = domain.quantities[self.quantity_name].explicit_update
Note: See TracChangeset for help on using the changeset viewer.