Changeset 7938
- Timestamp:
- Aug 12, 2010, 10:59:51 PM (15 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py
r7928 r7938 1449 1449 self.distribute_to_vertices_and_edges() 1450 1450 1451 # Initial update boundary values 1452 self.update_boundary() 1453 1451 1454 # Update extrema if necessary (for reporting) 1452 1455 self.update_extrema() 1453 1456 1454 # Initial update boundary values 1455 self.update_boundary() 1457 1456 1458 1457 1459 # Or maybe restore from latest checkpoint … … 1463 1465 1464 1466 while True: 1465 # Evolve One Step, using appropriate timestepping method 1467 1468 initial_time = self.time 1469 1470 #========================================== 1471 # Apply fluid flow fractional step 1472 #========================================== 1466 1473 if self.get_timestepping_method() == 'euler': 1467 1474 self.evolve_one_euler_step(yieldstep, finaltime) … … 1472 1479 elif self.get_timestepping_method() == 'rk3': 1473 1480 self.evolve_one_rk3_step(yieldstep, finaltime) 1481 1482 1483 #========================================== 1484 # Apply other fractional steps 1485 #========================================== 1486 #self.apply_fractional_steps() 1487 1488 #========================================== 1489 # Centroid Values of variables should be ok, 1490 # so now setup quantites etc for output 1491 #========================================== 1492 1493 # Update time 1494 self.time = initial_time + self.timestep 1495 1496 # Update vertex and edge values 1497 self.distribute_to_vertices_and_edges() 1498 1499 # Update boundary values 1500 self.update_boundary() 1474 1501 1475 1502 # Update extrema if necessary (for reporting) … … 1539 1566 self.update_ghosts() 1540 1567 1541 # Update time 1542 self.time += self.timestep 1543 1544 # Update vertex and edge values 1545 self.distribute_to_vertices_and_edges() 1546 1547 # Update boundary values 1548 self.update_boundary() 1568 1569 1549 1570 1550 1571 ## … … 1615 1636 self.update_ghosts() 1616 1637 1617 # Update vertex and edge values1618 self.distribute_to_vertices_and_edges()1619 1620 # Update boundary values1621 self.update_boundary()1622 1638 1623 1639 ## … … 1727 1743 self.time = initial_time + self.timestep 1728 1744 1729 # Update vertex and edge values1730 self.distribute_to_vertices_and_edges()1731 1732 # Update boundary values1733 self.update_boundary()1734 1745 1735 1746 ## -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r7870 r7938 241 241 242 242 243 def set_all_ limiters(self, beta):243 def set_all_betas(self, beta): 244 244 """Shorthand to assign one constant value [0,1] to all limiters. 245 245 0 Corresponds to first order, where as larger values make use of
Note: See TracChangeset
for help on using the changeset viewer.