Changeset 3952
- Timestamp:
- Nov 9, 2006, 9:39:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/broome_2006/run_broome.py
r3951 r3952 19 19 import time 20 20 from shutil import copy 21 from os import mkdir, access, F_OK 21 from os.path import dirname, basename 22 from os import mkdir, access, F_OK, sep 22 23 import sys 23 24 … … 28 29 from anuga.abstract_2d_finite_volumes.combine_pts import combine_rectangular_points_files 29 30 from anuga.geospatial_data.geospatial_data import * 30 from anuga.abstract_2d_finite_volumes.util import Screen_Catcher 31 #from anuga.abstract_2d_finite_volumes.util import Screen_Catcher 32 from anuga.abstract_2d_finite_volumes.util import start_screen_catcher, copy_code_files 31 33 32 34 # Application specific imports … … 38 40 #------------------------------------------------------------------------------- 39 41 40 # creates copy of code in output dir if dir doesn't exist 41 if access(project.outputtimedir,F_OK) == 0 : 42 mkdir (project.outputtimedir) 43 copy (project.codedirname, project.outputtimedir + project.codename) 44 copy (project.codedir + 'run_broome.py', project.outputtimedir + 'run_broome.py') 45 print'output dir', project.outputtimedir 46 47 #normal screen output is stored in 48 screen_output_name = project.outputtimedir + "screen_output.txt" 49 screen_error_name = project.outputtimedir + "screen_error.txt" 50 51 #used to catch screen output to file 52 sys.stdout = Screen_Catcher(screen_output_name) 53 sys.stderr = Screen_Catcher(screen_error_name) 42 # creates copy of code in output dir 43 copy_code_files(project.outputtimedir,__file__,dirname(project.__file__)+sep+ project.__name__+'.py' ) 44 myid = 0 45 numprocs = 1 46 start_screen_catcher(project.outputtimedir, myid, numprocs) 54 47 55 48 print 'USER: ', project.user … … 119 112 120 113 from anuga.pmesh.mesh_interface import create_mesh_from_regions 121 remainder_res = 750000114 remainder_res = 500000 122 115 local_res = 25000 123 116 broome_res = 5000
Note: See TracChangeset
for help on using the changeset viewer.