Changeset 8235
- Timestamp:
- Oct 25, 2011, 3:11:37 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py
r8234 r8235 1308 1308 self.number_of_first_order_steps = 0 1309 1309 1310 # Update centroid values of conserved quantites to satisfy 1311 # special conditions 1312 self.update_special_conditions() 1313 1310 1314 # Update ghosts to ensure all centroid values are available 1311 1315 self.update_ghosts() … … 1427 1431 self.update_conserved_quantities() 1428 1432 1433 1434 # Update special conditions 1435 self.update_special_conditions() 1436 1429 1437 # Update ghosts 1430 1438 self.update_ghosts() … … 1456 1464 # Update centroid values of conserved quantities 1457 1465 self.update_conserved_quantities() 1466 1467 # Update special conditions 1468 self.update_special_conditions() 1458 1469 1459 1470 # Update ghosts … … 1493 1504 self.saxpy_conserved_quantities(0.5, 0.5) 1494 1505 1506 # Update special conditions 1507 self.update_special_conditions() 1508 1495 1509 # Update ghosts 1496 1510 self.update_ghosts() … … 1523 1537 # Update conserved quantities 1524 1538 self.update_conserved_quantities() 1539 1540 # Update special conditions 1541 self.update_special_conditions() 1525 1542 1526 1543 # Update ghosts … … 1560 1577 self.saxpy_conserved_quantities(0.25, 0.75) 1561 1578 1579 1580 # Update special conditions 1581 self.update_special_conditions() 1582 1562 1583 # Update ghosts 1563 1584 self.update_ghosts() … … 1593 1614 self.saxpy_conserved_quantities(2.0/3.0, 1.0/3.0) 1594 1615 1616 1617 # Update special conditions 1618 self.update_special_conditions() 1619 1595 1620 # Update ghosts 1596 1621 self.update_ghosts() … … 1806 1831 Q_cv = self.quantities[q].centroid_values 1807 1832 num.put(Q_cv, Idg, num.take(Q_cv, Idf, axis=0)) 1833 1834 def update_special_conditions(self): 1835 """There may be a need to change the values of the conserved 1836 quantities to satisfy special conditions at the very lowest level 1837 the fluid flow calculation 1838 """ 1839 1840 pass 1841 1808 1842 1809 1843 def update_other_quantities(self): -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8231 r8235 240 240 self.optimised_gradient_limiter = optimised_gradient_limiter 241 241 self.use_centroid_velocities = use_centroid_velocities 242 243 244 def update_special_conditions(self): 245 246 my_update_special_conditions(self) 247 242 248 243 249 … … 1483 1489 return wet_friction 1484 1490 1491 def my_update_special_conditions(domain): 1492 1493 pass 1485 1494 1486 1495 -
trunk/anuga_core/source/anuga/structures/inlet.py
r8092 r8235 14 14 self.domain = domain 15 15 self.domain_bounding_polygon = self.domain.get_boundary_polygon() 16 self.line = line16 self.line = num.asarray(line, 'f') 17 17 self.verbose = verbose 18 18
Note: See TracChangeset
for help on using the changeset viewer.