Changeset 8451 for trunk/anuga_core/source/anuga_parallel
- Timestamp:
- Jun 20, 2012, 9:48:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py
r8420 r8451 90 90 # Only the master proc calculates the volume 91 91 92 current_volume = self.inlet.get_global_total_water_volume() 93 92 94 if self.myid == self.master_proc: 93 95 timestep = self.domain.get_timestep() … … 99 101 volume = 0.5*(Q1+Q2)*timestep 100 102 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!' 102 104 103 105 #print "Volume to be removed from Inlet = " + str(volume)
Note: See TracChangeset
for help on using the changeset viewer.