Ignore:
Timestamp:
Jan 23, 2012, 4:16:46 PM (13 years ago)
Author:
pittj
Message:

adding portability across, tornado, NCI, cyclone and compute 1 to all parrallel scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/mem_time_tests/triangles/serial/main.py

    r8303 r8320  
    1515from anuga.utilities import system_tools, log
    1616from anuga.abstract_2d_finite_volumes.util import add_directories
     17import logAnalyser
    1718#------------------------------------------------------------------------------
    1819# Setup computational domain
     
    2829file = 'ex1.csv'
    2930
    30 log.log_filename = os.path.join(scenariodir, 'log.txt')
     31#log.log_filename = os.path.join(scenariodir, 'anuga.log')
    3132
    3233file_path = os.path.join(scenariodir, file)
     
    3536spamWriter = csv.writer(open(file_path, 'wb'))
    3637spamWriter.writerow(['Number Of Triangles' ,'Max Triangle Area', 'Extent', 'Space Used MB' , 'Time Taken s'])
     38outputresource = os.path.join(scenariodir,'test.csv')
    3739
    3840
     
    4244    while (n > 0):
    4345        c = 2 #random.random() * 2000 + 1
    44         system_tools.MemoryUpdate()
    4546        z = time.time()
    4647        h = runcairns.runex(c,r)
    4748        y = time.time()
    4849        n = n -1
    49         x = system_tools.MemoryUpdate()[0]
    50         spamWriter.writerow([h,r,(c*c),x ,(y-z)])
     50        #subprocess.call(['python','timingScript.py',scenariodir,outputresource])
     51        logAnalyser.AnalyseLog()
     52        spamWriter.writerow([h,r,(c*c),'x' ,(y-z)])
    5153
    5254while (m > 0):
Note: See TracChangeset for help on using the changeset viewer.