- Timestamp:
- Feb 15, 2012, 3:58:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/mem_time_tests/scenarios/vel2/ex1.py
r8336 r8342 11 11 #set up variables for the simulation output and the log files 12 12 k= sys.argv[1] 13 l= sys.argv[2]13 l= float(sys.argv[2]) 14 14 15 15 home = os.getenv('INUNDATIONHOME') … … 17 17 "velocity", "velocity-" + str(k) +"-"+ str(l)]) 18 18 19 log.timingInfo(msg=('v ariable1,'+str(k))) #write the variable to be measured to file20 log.timingInfo(msg=(' variable2,'+str(l))) #write the variable to be measured to file19 log.timingInfo(msg=('velocity,'+str(k))) #write the variable to be measured to file 20 log.timingInfo(msg=('extent,'+str(l**2))) #write the variable to be measured to file 21 21 log.timingInfo(msg=('beforetime,'+str(log.TimeStamp()))) #get the time at the beginning of the simulation 22 22 … … 34 34 35 35 log.resource_usage_timing(prefix = 'aftermesh') #get memory usage 36 log.timingInfo(msg=('aftermeshtime,'+str(log.TimeStamp()))) #get the time at the beginning of the simulation 36 37 37 38 #get the number of triangles 38 39 number = len(domain) 39 log.timingInfo(msg=(' variable3,'+str(number))) #write the variable to be measured to file40 log.timingInfo(msg=('numberoftriangles'+str(number))) #write the variable to be measured to file 40 41 41 42 #--------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.