Changeset 3773
- Timestamp:
- Oct 13, 2006, 1:41:22 PM (17 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r3703 r3773 263 263 self.time = time 264 264 265 def get_time(self): 266 """Get the model time (seconds)""" 267 268 return self.time 269 265 270 def set_quantity_vertices_dict(self, quantity_dict): 266 271 """Set values for named quantities. -
anuga_core/source/anuga/examples/beach_parallel.py
r3656 r3773 138 138 t0 = time.time() 139 139 for t in domain.evolve(yieldstep = 0.2, finaltime = 300): 140 domain.write_time() 140 #domain.write_time() 141 142 w = domain.get_maximum_inundation_elevation() 143 x, y = domain.get_maximum_inundation_location() 144 t = domain.get_time() 145 print ' Coastline elevation at t = %.2f is %.2f at loc (x,y)=(%.2f, %.2f)' %(t, w, x, y) 146 141 147 142 148 print 'Simulation took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.