Changeset 5362
- Timestamp:
- May 26, 2008, 9:41:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/onslow_2006/run_onslow.py
r3932 r5362 25 25 from anuga.shallow_water import Domain, Reflective_boundary, \ 26 26 Dirichlet_boundary, Time_boundary, File_boundary 27 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 28 from anuga.abstract_2d_finite_volumes.combine_pts import combine_rectangular_points_files27 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts, ferret2sww 28 #from anuga.abstract_2d_finite_volumes.combine_pts import combine_rectangular_points_files 29 29 from anuga.geospatial_data.geospatial_data import * 30 from anuga.abstract_2d_finite_volumes.util import Screen_Catcher 30 #from anuga.abstract_2d_finite_volumes.util import Screen_Catcher 31 #from anuga.shallow_water.data_manager import start_screen_catcher 31 32 32 33 # Application specific imports … … 38 39 #------------------------------------------------------------------------------- 39 40 40 # creates copy of code in output dir if dir doesn't exist41 ### creates copy of code in output dir if dir doesn't exist 41 42 if access(project.outputtimedir,F_OK) == 0 : 42 43 mkdir (project.outputtimedir) … … 45 46 print'output dir', project.outputtimedir 46 47 47 # normal screen output is stored in48 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 file52 sys.stdout = Screen_Catcher(screen_output_name)53 # sys.stderr = Screen_Catcher(screen_output_name)54 sys.stderr = Screen_Catcher(screen_error_name)55 56 print 'USER: ', project.user48 ###normal screen output is stored in 49 ##screen_output_name = project.outputtimedir + "screen_output.txt" 50 ##screen_error_name = project.outputtimedir + "screen_error.txt" 51 ## 52 ###used to catch screen output to file 53 ##sys.stdout = Screen_Catcher(screen_output_name) 54 ###sys.stderr = Screen_Catcher(screen_output_name) 55 ##sys.stderr = Screen_Catcher(screen_error_name) 56 ## 57 ##print 'USER: ', project.user 57 58 58 59 #------------------------------------------------------------------------------- … … 96 97 97 98 print'create G1' 98 G1 = Geospatial_data(file_name = project.offshore_dem_name + '. xya')99 G1 = Geospatial_data(file_name = project.offshore_dem_name + '.txt') 99 100 print'create G2' 100 101 G2 = Geospatial_data(file_name = project.onshore_dem_name + '.pts') 101 102 print'create G3' 102 G3 = Geospatial_data(file_name = project.coast_dem_name + '. xya')103 G3 = Geospatial_data(file_name = project.coast_dem_name + '.txt') 103 104 print'create G4' 104 105 G4 = Geospatial_data(file_name = project.islands_dem_name + '.pts') … … 184 185 #------------------------------------------------------------------------------- 185 186 print 'start ferret2sww' 186 from anuga.pyvolution.data_manager import ferret2sww 187 187 188 188 189 south = project.south
Note: See TracChangeset
for help on using the changeset viewer.