Changeset 3853
- Timestamp:
- Oct 25, 2006, 4:31:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r3851 r3853 40 40 # output to file 41 41 #------------------------------------------------------------------------------ 42 #print 'project.build_time', project.build_time 43 #print 'project.output_build_time_dir',project.output_build_time_dir 44 #print '__file__, project.output_time_dir + basename(__file__)', __file__, project.output_build_time_dir + basename(__file__) 45 #print 'dirname(project.__file__) +sep+ project.__name__', dirname(project.__file__) +sep+ project.__name__+'.py' 46 #print'project.topographies_time_dir',project.topographies_time_dir, project.combined_time_dir_name + '.pts' 47 #print project.boundaries_time_dir, project.boundaries_time_dir_name 48 #import sys; sys.exit() 42 49 43 if access(project.output_build_time_dir,F_OK) == 0: 50 44 mkdir (project.output_build_time_dir) … … 54 48 print 'files '+ project.__name__+'.py and '+ basename(__file__)+' copied to '+ project.output_build_time_dir #copies this file 55 49 #import sys; sys.exit() 50 51 52 #normal screen output is stored in 53 screen_output_name = project.outputtimedir + "screen_output.txt" 54 screen_error_name = project.outputtimedir + "screen_error.txt" 55 56 #used to catch screen output to file 57 sys.stdout = Screen_Catcher(screen_output_name) 58 sys.stderr = Screen_Catcher(screen_error_name) 59 60 print 'USER: ', project.user 56 61 57 62 #------------------------------------------------------------------------------- … … 137 142 #------------------------------------------------------------------------- 138 143 print 'starting to create boundary conditions' 139 boundaries_ dir_name = project.boundaries_dir_name144 boundaries_in_dir_name = project.boundaries_in_dir_name 140 145 141 146 from anuga.shallow_water.data_manager import urs2sww … … 146 151 if access(project.boundaries_time_dir,F_OK) == 0: 147 152 mkdir (project.boundaries_time_dir) 148 urs2sww(boundaries_ dir_name,basename_out= project.boundaries_time_dir_name,153 urs2sww(boundaries_in_dir_name,basename_out= project.boundaries_time_dir_name, 149 154 minlat=project.south_boundary, maxlat=project.north_boundary, 150 155 minlon= project.west_boundary, maxlon=project.east_boundary,
Note: See TracChangeset
for help on using the changeset viewer.