Changeset 8420
- Timestamp:
- May 8, 2012, 7:06:21 PM (13 years ago)
- Location:
- trunk/anuga_core/source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py
r8418 r8420 479 479 if cfl > 2.0: 480 480 self.CFL = cfl 481 log.warn('Setting CFL > 2.0') 481 msg = 'Setting CFL > 2.0' 482 #warnings.warn(msg) 483 log.warn() 482 484 483 485 assert cfl > 0.0 -
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py
r8388 r8420 88 88 89 89 try: 90 domain.set_CFL( 2.0)90 domain.set_CFL(3.0) 91 91 except: 92 92 pass 93 93 else: 94 msg = 'Should have warned of cfl> 1.0'94 msg = 'Should have warned of cfl>2.0' 95 95 raise Exception, msg 96 96 97 assert domain.CFL == 2.097 assert domain.CFL == 3.0 98 98 99 99 -
trunk/anuga_core/source/anuga/operators/mannings_operator.py
r8413 r8420 63 63 64 64 65 def __parallel_safe(self):65 def parallel_safe(self): 66 66 """ 67 67 This operator only works with centroid values of quantities -
trunk/anuga_core/source/anuga/operators/rate_operators.py
r8366 r8420 154 154 return rate 155 155 156 def __parallel_safe(self):156 def parallel_safe(self): 157 157 """Operator is applied independently on each cell and 158 158 so is parallel safe. -
trunk/anuga_core/source/anuga/shallow_water/forcing.py
r8318 r8420 278 278 if domain.numproc > 1: 279 279 msg = 'Not implemented to run in parallel' 280 assert self. __parallel_safe(), msg280 assert self.parallel_safe(), msg 281 281 282 282 if center is None: … … 495 495 496 496 497 def __parallel_safe(self):497 def parallel_safe(self): 498 498 """ 499 499 These forcing terms only work on individual processors, the polygon -
trunk/anuga_core/source/anuga_parallel/parallel_boyd_box_operator.py
r8418 r8420 95 95 96 96 97 def __parallel_safe(self):97 def parallel_safe(self): 98 98 99 99 print "ZZZZ parallel_boyd" -
trunk/anuga_core/source/anuga_parallel/parallel_inlet.py
r8227 r8420 467 467 return self.master_proc 468 468 469 def __parallel_safe(self):469 def parallel_safe(self): 470 470 471 471 return True -
trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py
r8256 r8420 215 215 return self.master_proc 216 216 217 def __parallel_safe(self):217 def parallel_safe(self): 218 218 return True
Note: See TracChangeset
for help on using the changeset viewer.