Changeset 7907
- Timestamp:
- Aug 2, 2010, 2:11:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/sudi/sw_1d/shock_detector_shv/dam_h_2sides_RUN.py
r7906 r7907 57 57 C=domain.centroids 58 58 import time 59 yieldstep=finaltime= 1.059 yieldstep=finaltime=5.0 60 60 t0=time.time() 61 61 i=1 62 62 63 while finaltime < 1.01:63 while finaltime < 5.01: 64 64 for t in domain.evolve(yieldstep=yieldstep, finaltime=finaltime): 65 65 domain.write_time() … … 78 78 #print "u_error %.10f" %(u_error) 79 79 #print 'That took %.2f seconds' %(time.time()-t0) 80 X = domain.vertices 81 StageQ = domain.quantities['stage'].vertex_values 82 XmomQ = domain.quantities['xmomentum'].vertex_values 83 VelQ = domain.quantities['velocity'].vertex_values 84 BedQ = domain.quantities['elevation'].vertex_values 80 X = domain.vertices.flat 81 StageQ = domain.quantities['stage'].vertex_values.flat 82 XmomQ = domain.quantities['xmomentum'].vertex_values.flat 83 VelQ = domain.quantities['velocity'].vertex_values.flat 84 BedQ = domain.quantities['elevation'].vertex_values.flat 85 85 #h, uh, u = analytical_sol(X.flat, domain.time) 86 86
Note: See TracChangeset
for help on using the changeset viewer.