Ignore:
Timestamp:
Feb 10, 2012, 10:34:08 AM (13 years ago)
Author:
pittj
Message:

update for the new experiments

File:
1 edited

Legend:

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

    r8328 r8331  
    1414
    1515home = os.getenv('INUNDATIONHOME')
    16 scenariodir = add_directories(home, ["data","mem_time_test", "scenarios",
    17                                        "velocity"])
    1816scenariodirV = add_directories(home, ["data","mem_time_test", "scenarios",
    1917                                       "velocity", "velocity-" + str(k) +"-"+ str(l)])
    2018
    21 store = 'store.txt'
    22 store_path = os.path.join(scenariodir, store)
     19log.timingInfo(msg=('variable1,'+str(k))) #write the variable to be measured to file
     20log.timingInfo(msg=('variable2,'+str(l))) #write the variable to be measured to file
     21log.timingInfo(msg=('beforetime,'+str(log.TimeStamp()))) #get the time at the beginning of the simulation
    2322
    2423log.log_filename = os.path.join(scenariodirV, "anuga.log")
    2524log._setup = False
    2625
    27 log.resource_usage_timing(prefix = 'BeforeSimulation') #get memory usage
     26log.resource_usage_timing(prefix = 'beforesimulation') #get memory usage
    2827#------------------------------------------------------------------------------
    2928# Setup computational domain
     
    3433domain.set_datadir(scenariodirV)
    3534
    36 log.resource_usage_timing(prefix = 'AfterMesh')  #get memory usage
     35log.resource_usage_timing(prefix = 'aftermesh')  #get memory usage
    3736
    3837#get the number of triangles
    3938number = len(domain)
     39log.timingInfo(msg=('variable3,'+str(number))) #write the variable to be measured to file
    4040
    4141#--------------------------------------------------------------------------
     
    6767
    6868log.resource_usage_timing(prefix='aftersimulation')  #get memory usage
    69 
    70 #write the number of triangles to the file
    71 c = open(store_path,'r+')
    72 c.write(str(number))
     69log.timingInfo(msg=('aftertime,'+str(log.TimeStamp()))) #get the time at the end of the simulation
Note: See TracChangeset for help on using the changeset viewer.