Ignore:
Timestamp:
Feb 2, 2012, 1:08:40 PM (13 years ago)
Author:
pittj
Message:

metalog and ex1 merge added, code is now correct across all major experiments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/mem_time_tests/parameters/nothing/ex1.py

    r8326 r8328  
    55import time
    66import os
     7import sys
    78from anuga.utilities import log
    89from anuga.abstract_2d_finite_volumes.util import add_directories
    910
    10 #set up the variables to correctly store the temporary data
     11#set up the variables to correctly store the output data and log file
     12n = sys.argv[1]
    1113home = os.getenv('INUNDATIONHOME')
    12 scenariodir = add_directories(home, ["data","mem_time_test", "parameters","nothing"])
    13 store ='store.txt'
    14 file_path_store = os.path.join(scenariodir, store)
    15 
    16 #get the run number from the store text file
    17 f = open(file_path_store,'r+')
    18 n = float(f.readline())
    19 f.close()
    20 
    21 #set up the variables to correctly store the output data and log file
    2214scenariodirV = add_directories(home, ["data","mem_time_test", "parameters",
    2315                                     "nothing","nothing"+"-"+str(n)])
     
    3426
    3527domain.set_name('channel1') # Output name
    36 domain.set_datadir(scenariodir)
     28domain.set_datadir(scenariodirV)
    3729
    3830log.resource_usage_timing(prefix = 'AfterMesh')  #get memory usage here
Note: See TracChangeset for help on using the changeset viewer.