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/file/test_sww.py

    r7872 r8068  
    103103        #Now evolve them both, just to be sure
    104104        ######################################x
    105         domain.time = 0.
    106105        from time import sleep
    107106
     
    116115            pass
    117116
    118         final = final - (domain2.starttime-domain.starttime)
    119117        #BUT since domain1 gets time hacked back to 0:
    120         final = final + (domain2.starttime-domain.starttime)
     118       
     119        final = final + (domain2.get_starttime() - domain.get_starttime())
    121120
    122121        domain2.smooth = False
Note: See TracChangeset for help on using the changeset viewer.