From: <Dun...@ga...> - 2007-01-31 05:36:45
|
Hi Matt, At the end of the run*.py file there is probably something like; for t in domain.evolve(yieldstep =3D yieldstep, finaltime =3D = finaltime): The t is the model time. So below is an example of using an 'if' statement, based on the model = time; for t in domain.evolve(yieldstep =3D yieldstep, finaltime =3D = finaltime): if t > 0.5: print "yeah"=20 Cheers Duncan -----Original Message----- From: anu...@li... [mailto:anu...@li...] On Behalf Of = Matthew Barnes Sent: Wednesday, 31 January 2007 10:11 AM To: anu...@li... Subject: [Anuga-developer] Accessing model time Hi All, I would like to access the model time for use in an "if" statement. What = is the correct command to access the model time? Any advice is appreciated. Cheers, Matt. Matthew Barnes Coastal Engineering Research Centre Dept Civil Engineering University of Queensland, Brisbane QLD 4072 AUSTRALIA Tel: +61 (0)7 3365 4170 Fax: +61 (0)7 3365 4599 Email: mb...@uq... Web: www.uq.edu.au/coastal; www.crctourism.com.au =20 -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Anuga-developer mailing list Anu...@li... https://lists.sourceforge.net/lists/listinfo/anuga-developer |