Changeset 7022
- Timestamp:
- May 12, 2009, 3:17:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/bamaga/run_model.py
r7002 r7022 87 87 # Number of boundary segments 88 88 num_ocean_segments = len(event_sts) - 1 89 print num_ocean_segments 89 90 # Number of landward_boundary points 90 91 num_land_points = file_length(project.landward_boundary) 91 92 print num_land_points 92 93 # Boundary tags refer to project.landward_boundary 93 94 # 4 points equals 5 segments start at N 94 boundary_tags={'back': [num_ocean_segments+1], 95 boundary_tags={'back': range(num_ocean_segments+2, 96 num_ocean_segments+5), 95 97 'side': [num_ocean_segments, 96 num_ocean_segments+2, 97 num_ocean_segments+3, 98 num_ocean_segments+num_land_points], 98 num_ocean_segments+1, 99 num_ocean_segments+5, 100 num_ocean_segments+6, 101 num_ocean_segments+7, 102 num_ocean_segments+8], 103 #num_ocean_segments+9], 99 104 'ocean': range(num_ocean_segments)} 105 ##boundary_tags = {'back':[3], 106 ## 'side':[2,4], 107 ## 'ocean':[0,1,5]} 108 109 print 'boundary tags', boundary_tags 100 110 101 111 # Build mesh and domain … … 105 115 interior_regions=project.interior_regions, 106 116 mesh_filename=project.meshes, 107 use_cache= True,117 use_cache=False, 108 118 verbose=True) 109 119 print domain.statistics()
Note: See TracChangeset
for help on using the changeset viewer.