- Timestamp:
- Feb 2, 2012, 1:08:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/mem_time_tests/parameters/nothing/ex1.py
r8326 r8328 5 5 import time 6 6 import os 7 import sys 7 8 from anuga.utilities import log 8 9 from anuga.abstract_2d_finite_volumes.util import add_directories 9 10 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 12 n = sys.argv[1] 11 13 home = 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 file17 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 file22 14 scenariodirV = add_directories(home, ["data","mem_time_test", "parameters", 23 15 "nothing","nothing"+"-"+str(n)]) … … 34 26 35 27 domain.set_name('channel1') # Output name 36 domain.set_datadir(scenariodir )28 domain.set_datadir(scenariodirV) 37 29 38 30 log.resource_usage_timing(prefix = 'AfterMesh') #get memory usage here
Note: See TracChangeset
for help on using the changeset viewer.