Changeset 8451 for trunk


Ignore:
Timestamp:
Jun 20, 2012, 9:48:35 PM (12 years ago)
Author:
steve
Message:

Allow removal of limit Q>0 for inlet_operator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py

    r8420 r8451  
    9090        # Only the master proc calculates the volume
    9191
     92        current_volume = self.inlet.get_global_total_water_volume()
     93
    9294        if self.myid == self.master_proc:
    9395            timestep = self.domain.get_timestep()
     
    99101            volume = 0.5*(Q1+Q2)*timestep
    100102
    101             assert 0.5*(Q1+Q2) >= 0.0, 'Q < 0: Water to be removed from an inlet!'
     103            assert current_volume + volume >= 0.0 , 'Requesting too much water to be removed from an inlet!'
    102104
    103105            #print "Volume to be removed from Inlet = " + str(volume)
Note: See TracChangeset for help on using the changeset viewer.