- Timestamp:
- Jan 24, 2012, 2:37:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/mem_time_tests/NCIparallel/area/main.py
r8317 r8324 1 #below is the first code that worked on NCI and is here to remain unchanged 2 #and just be an example read NCI.doc to how the code was reworked to run on NCI 3 #it is not perfect, but it did work as of revision 8322 1 4 """Simple water flow example using ANUGA 2 5 Water flowing down a channel … … 14 17 from anuga.utilities import system_tools, log 15 18 from anuga.abstract_2d_finite_volumes.util import add_directories 16 19 from anuga.utilities.log_analyser import analyse_log 17 20 18 21 #------------------------------------------------------------------------------ … … 36 39 file_path_storen = os.path.join(scenariodir, storen) 37 40 38 log.log_filename = os.path.join(scenariodir, 'log.txt ')41 log.log_filename = os.path.join(scenariodir, 'log.txt 39 42 40 43 spamWriter = csv.writer(open(file_path, 'wb')) … … 53 56 f = 4 54 57 for l in range(400,500,100): 55 58 56 59 g = open(file_path_storel,'r+') 57 60 g.write(str(l)) … … 59 62 h = open(file_path_storea,'r+') 60 63 h.write(str(d)) 61 64 62 65 z = time.time() 63 subprocess.call(['mpirun', '-np', str(f), '-hostfile' ,'~/machinefiles/t.machines_tornado', '-x','PYTHONPATH','-x','INUNDATIONHOME','python2.5', 'runcairns.py']) 66 subprocess.call(['mpirun','-np','8','-x','PYTHONPATH','-x','INUNDATIONHOME','python','runcairns.py']) 67 #subprocess.call(['mpirun', '-np', str(f), '-hostfile' ,'~/machinefiles/t.machines_tornado','-x','PYTHONPATH','-x','INUNDATIONHOME','python2.5', 'ru$ 64 68 #subprocess.call(['python2.5', 'runcairns.py']) 65 69 y = time.time() … … 80 84 81 85 print 'Done' 82 86 analyse_log(scenariodir, 'metalog.csv')
Note: See TracChangeset
for help on using the changeset viewer.