Ignore:
Timestamp:
Feb 15, 2012, 3:58:52 PM (13 years ago)
Author:
pittj
Message:

all variables now have the correct name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/mem_time_tests/scenarios/vel2/ex1.py

    r8336 r8342  
    1111#set up variables for the simulation output and the log files
    1212k= sys.argv[1]
    13 l= sys.argv[2]
     13l= float(sys.argv[2])
    1414
    1515home = os.getenv('INUNDATIONHOME')
     
    1717                                       "velocity", "velocity-" + str(k) +"-"+ str(l)])
    1818
    19 log.timingInfo(msg=('variable1,'+str(k))) #write the variable to be measured to file
    20 log.timingInfo(msg=('variable2,'+str(l))) #write the variable to be measured to file
     19log.timingInfo(msg=('velocity,'+str(k))) #write the variable to be measured to file
     20log.timingInfo(msg=('extent,'+str(l**2))) #write the variable to be measured to file
    2121log.timingInfo(msg=('beforetime,'+str(log.TimeStamp()))) #get the time at the beginning of the simulation
    2222
     
    3434
    3535log.resource_usage_timing(prefix = 'aftermesh')  #get memory usage
     36log.timingInfo(msg=('aftermeshtime,'+str(log.TimeStamp()))) #get the time at the beginning of the simulation
    3637
    3738#get the number of triangles
    3839number = len(domain)
    39 log.timingInfo(msg=('variable3,'+str(number))) #write the variable to be measured to file
     40log.timingInfo(msg=('numberoftriangles'+str(number))) #write the variable to be measured to file
    4041
    4142#--------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.