Ignore:
Timestamp:
Nov 28, 2008, 11:48:45 AM (16 years ago)
Author:
kristy
Message:

general maintenance of scripts, added boundary to mesh in run_geraldton.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/geraldton/run_geraldton.py

    r5789 r6027  
    3838from anuga.shallow_water.data_manager import export_grid, create_sts_boundary
    3939from anuga.pmesh.mesh_interface import create_mesh_from_regions
     40from anuga.pmesh.mesh import importMeshFromFile
    4041from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters
    4142from anuga_parallel.parallel_abstraction import get_processor_name
     
    4445from anuga.fit_interpolate.benchmark_least_squares import mem_usage
    4546from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon
    46 from anuga.geospatial_data.geospatial_data import find_optimal_smoothing_parameter
     47from anuga.geospatial_data.geospatial_data import find_optimal_smoothing_parameter,Geospatial_data
    4748from polygon import Polygon_function
    48    
     49
     50
    4951# Application specific imports
    5052import project  # Definition of file names and polygons
     
    109111                         interior_regions=project.interior_regions,
    110112                         filename=project.meshes_dir_name,
    111                          use_cache=True,
     113                         use_cache=False,
    112114                         verbose=True)
     115
     116    m = importMeshFromFile(project.meshes_dir_name)
     117    # load points from a points file
     118    m.add_points_and_segments(Geospatial_data(project.barrier_dir_name))
     119    m.add_points_and_segments(Geospatial_data(project.barrier_dir_name1))
     120    m.generate_mesh()
     121    m.export_mesh_file(project.meshes_dir_name)
    113122   
    114123    #-------------------------------------------------------------------------
     
    224233   
    225234    kwargs={}
     235    kwargs['file_name']=project.dir_comment
    226236    kwargs['finaltime']=project.finaltime
    227237    kwargs['output_dir']=project.output_run_time_dir
Note: See TracChangeset for help on using the changeset viewer.