Changeset 7938


Ignore:
Timestamp:
Aug 12, 2010, 10:59:51 PM (14 years ago)
Author:
steve
Message:

adding in option for extrafractional steps.

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  
    14491449        self.distribute_to_vertices_and_edges()
    14501450
     1451        # Initial update boundary values
     1452        self.update_boundary()
     1453
    14511454        # Update extrema if necessary (for reporting)
    14521455        self.update_extrema()
    14531456
    1454         # Initial update boundary values
    1455         self.update_boundary()
     1457
    14561458
    14571459        # Or maybe restore from latest checkpoint
     
    14631465
    14641466        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            #==========================================
    14661473            if self.get_timestepping_method() == 'euler':
    14671474                self.evolve_one_euler_step(yieldstep, finaltime)
     
    14721479            elif self.get_timestepping_method() == 'rk3':
    14731480                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()
    14741501
    14751502            # Update extrema if necessary (for reporting)
     
    15391566        self.update_ghosts()
    15401567
    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
    15491570
    15501571    ##
     
    16151636        self.update_ghosts()
    16161637
    1617         # Update vertex and edge values
    1618         self.distribute_to_vertices_and_edges()
    1619 
    1620         # Update boundary values
    1621         self.update_boundary()
    16221638
    16231639    ##
     
    17271743        self.time = initial_time + self.timestep
    17281744
    1729         # Update vertex and edge values
    1730         self.distribute_to_vertices_and_edges()
    1731 
    1732         # Update boundary values
    1733         self.update_boundary()
    17341745
    17351746    ##
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r7870 r7938  
    241241
    242242
    243     def set_all_limiters(self, beta):
     243    def set_all_betas(self, beta):
    244244        """Shorthand to assign one constant value [0,1] to all limiters.
    245245        0 Corresponds to first order, where as larger values make use of
Note: See TracChangeset for help on using the changeset viewer.