Ignore:
Timestamp:
Jan 31, 2012, 10:54:12 AM (12 years ago)
Author:
pittj
Message:

formatted the experiment scripts

File:
1 edited

Legend:

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

    r8320 r8326  
    1313import os
    1414import time
    15 from anuga.utilities import system_tools, log
     15from anuga.utilities import system_tools, log, log_analyser
    1616from anuga.abstract_2d_finite_volumes.util import add_directories
    17 import logAnalyser
     17
    1818#------------------------------------------------------------------------------
    1919# Setup computational domain
     
    2828                                     "serial"])
    2929file = 'ex1.csv'
    30 
    31 #log.log_filename = os.path.join(scenariodir, 'anuga.log')
    32 
    3330file_path = os.path.join(scenariodir, file)
    34 #print "file_path",file_path
    3531
    3632spamWriter = csv.writer(open(file_path, 'wb'))
     
    4036
    4137
    42 def runlist(r):
    43     n = 1 #20
    44     while (n > 0):
    45         c = 2 #random.random() * 2000 + 1
     38for m in range(40000,50000,10000):
     39
     40    for n in range(9,10,1):
    4641        z = time.time()
    47         h = runcairns.runex(c,r)
     42        h = runcairns.runex(n,m)
    4843        y = time.time()
    4944        n = n -1
    50         #subprocess.call(['python','timingScript.py',scenariodir,outputresource])
    51         logAnalyser.AnalyseLog()
    5245        spamWriter.writerow([h,r,(c*c),'x' ,(y-z)])
    53 
    54 while (m > 0):
    55     m = m -1
    56     d = 101 #random.random() * 100 +1
    57    
    58     runlist(d)
    59 
    6046print 'DONE'
    6147
Note: See TracChangeset for help on using the changeset viewer.