Ignore:
Timestamp:
Nov 11, 2010, 11:55:52 AM (14 years ago)
Author:
habili
Message:

Fixed bug where starttime and duration in the evolve function did not produce correct results. Starttime is now set in the constructor of Domain and is 0 by default. time is is to starttime. Also a bug was fixed where duration did not correctly calculate the finaltime. Associated unit tests have also been fixed to reflect the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8047 r8068  
    106106                 full_send_dict=None,
    107107                 ghost_recv_dict=None,
     108                 starttime=0,
    108109                 processor=0,
    109110                 numproc=1,
     
    140141            other_quantities = ['elevation', 'friction']
    141142       
     143       
    142144        Generic_Domain.__init__(self,
    143145                            coordinates,
     
    155157                            full_send_dict,
    156158                            ghost_recv_dict,
     159                            starttime,
    157160                            processor,
    158161                            numproc,
     
    563566        self.distribute_to_vertices_and_edges()
    564567
    565         if self.store is True and self.time == 0.0:
     568        if self.store is True and self.get_time() == self.get_starttime():
    566569            self.initialise_storage()
    567570
Note: See TracChangeset for help on using the changeset viewer.