Changeset 6328


Ignore:
Timestamp:
Feb 13, 2009, 9:37:53 AM (15 years ago)
Author:
jgriffin
Message:

Now import file_length to calculate the number of landward boundary points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/standardised_version/run_model.py

    r6324 r6328  
    3232from anuga.interface import create_sts_boundary
    3333from anuga.interface import csv2building_polygons
     34from file_length import file_length
    3435
    3536from anuga.shallow_water.data_manager import start_screen_catcher
     
    7879# Number of boundary segments
    7980N = len(event_sts) - 1
     81# Number of landward_boundary points
     82M = file_length(project.landward_boundary)
    8083
    8184# Boundary tags refer to project.landward_boundary
    8285# 4 points equals 5 segments start at N
    83 boundary_tags={'back': [N+1, N+2, N+3, N+4, N+5, N+6, N+7],
    84                'side': [N, N+8],
     86boundary_tags={'back': range(N+1,N+M),
     87               'side': [N,N+M],
    8588               'ocean': range(N)}
    8689
Note: See TracChangeset for help on using the changeset viewer.