Changeset 3853


Ignore:
Timestamp:
Oct 25, 2006, 4:31:18 PM (18 years ago)
Author:
nick
Message:

update to dampier (this works)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/dampier_2006/build_dampier.py

    r3851 r3853  
    4040# output to file
    4141#------------------------------------------------------------------------------
    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
    4943if access(project.output_build_time_dir,F_OK) == 0:
    5044    mkdir (project.output_build_time_dir)
     
    5448print 'files '+ project.__name__+'.py and '+ basename(__file__)+' copied to '+ project.output_build_time_dir       #copies this file
    5549#import sys; sys.exit()
     50
     51
     52#normal screen output is stored in
     53screen_output_name = project.outputtimedir + "screen_output.txt"
     54screen_error_name = project.outputtimedir + "screen_error.txt"
     55
     56#used to catch screen output to file
     57sys.stdout = Screen_Catcher(screen_output_name)
     58sys.stderr = Screen_Catcher(screen_error_name)
     59
     60print 'USER:    ', project.user
    5661
    5762#-------------------------------------------------------------------------------
     
    137142#-------------------------------------------------------------------------
    138143print 'starting to create boundary conditions'
    139 boundaries_dir_name = project.boundaries_dir_name
     144boundaries_in_dir_name = project.boundaries_in_dir_name
    140145
    141146from anuga.shallow_water.data_manager import urs2sww
     
    146151if access(project.boundaries_time_dir,F_OK) == 0:
    147152    mkdir (project.boundaries_time_dir)
    148 urs2sww(boundaries_dir_name,basename_out= project.boundaries_time_dir_name,
     153urs2sww(boundaries_in_dir_name,basename_out= project.boundaries_time_dir_name,
    149154        minlat=project.south_boundary, maxlat=project.north_boundary,
    150155        minlon= project.west_boundary, maxlon=project.east_boundary,
Note: See TracChangeset for help on using the changeset viewer.