Changeset 4357 for anuga_work/production
- Timestamp:
- Apr 4, 2007, 12:43:19 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r4282 r4357 158 158 cache(urs2sww, 159 159 (boundaries_in_dir_name, 160 project.boundaries_dir_name+' 2'),160 project.boundaries_dir_name+'a'), 161 161 {'verbose': True, 162 162 'minlat': project.south_boundary, … … 164 164 'minlon': project.west_boundary, 165 165 'maxlon': project.east_boundary, 166 'mint': 8500, 'maxt': 12000,166 'mint': 5000, 'maxt': 35000, 167 167 # 'origin': domain.geo_reference.get_origin(), 168 'mean_stage': project.tide,168 # 'mean_stage': project.tide, 169 169 'zscale': 1, #Enhance tsunami 170 170 'fail_on_NaN': False}, -
anuga_work/production/dampier_2006/check_data.py
r4308 r4357 20 20 #run_time = '20070305_055256_run' 21 21 #run_time = '20070305_134855_run' 22 run_time = '200703 07_041139_run'22 run_time = '20070321_164505_run' 23 23 24 24 topo = 'topographies' -
anuga_work/production/dampier_2006/get_timeseries_and.py
r4311 r4357 35 35 bo = 'boundaries' 36 36 37 run_time = '200703 21_164505_run'38 production_dirs = { #run_time: 'URS evolved data'#,39 'boundaries': 'URS boundary condition'37 run_time = '20070311_225041_run' 38 production_dirs = {run_time: 'URS evolved data'#, 39 #'boundaries': 'URS boundary condition' 40 40 } 41 41 … … 152 152 b_sample.append(float(b_stage[i])) 153 153 e_sample.append(float(e_stage[k])) 154 print 'out:', b_time[i], b_stage[i],i, j, b_sample[j],e_stage[j]154 # print 'out:', b_time[i], b_stage[i],i, j, b_sample[j],e_stage[j] 155 155 if k <len(e_time): print 'time e equal b:', b_time[i], b_stage[i],i, j, b_sample[j],e_stage[j], e_stage[k],(len(e_time)-1) 156 156 j = j +1 … … 158 158 159 159 160 print len(b_sample), len(e_stage) 161 e_stage = e_stage.tolist().pop() 162 e_stage = e_stage.tolist().pop() 160 print len(b_sample), len(e_stage),e_stage,type(e_stage) 161 e_stage = e_stage.tolist() 162 e_stage.pop() 163 #e_stage = e_stage.tolist().pop() 164 e_stage.pop() 165 #e_stage.pop() 163 166 164 print len(b_sample), len(e_stage) 167 print len(b_sample), len(e_stage),e_stage 165 168 #assert allclose (b_sample, e_sample, 0.5, 0.5) 166 169 167 assert allclose (b_sample, e_stage, 0. 5, 0.5)170 assert allclose (b_sample, e_stage, 0.2, 0.2) 168 171 print "test successful" 169 172 -
anuga_work/production/dampier_2006/project.py
r4311 r4357 95 95 boundaries_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep 96 96 boundaries_dir_name = boundaries_dir + boundaries_name 97 boundaries_dir_namea = boundaries_dir + boundaries_name+'_5000_35000' 97 98 boundaries_dir_name1 = boundaries_dir + boundaries_name1 98 99 boundaries_dir_name2 = boundaries_dir + boundaries_name2 -
anuga_work/production/dampier_2006/run_dampier.py
r4308 r4357 44 44 45 45 start_screen_catcher(project.output_run_time_dir, myid, numprocs) 46 46 47 print "Processor Name:",get_processor_name() 48 barrier() 47 49 48 50 # filenames … … 82 84 83 85 sys.exit() 84 86 ''' 85 87 if myid == 0: 86 88 … … 93 95 'ocean': [5]}, 94 96 maximum_triangle_area=project.res_poly_all, 95 interior_regions=project.interior_regions _test,97 interior_regions=project.interior_regions, 96 98 filename=meshes_dir_name, 97 99 use_cache=True, … … 105 107 'ocean': [5]}, 106 108 maximum_triangle_area=project.res_poly_all, 107 interior_regions=project.interior_regions_test, 109 # interior_regions=project.interior_regions, 110 interior_regions=None, 108 111 filename=meshes_dir_name, 109 use_cache= True,112 use_cache=False, 110 113 verbose=True) 111 114 ''' 112 115 #------------------------------------------------------------------------- 113 116 # Setup computational domain 114 117 #------------------------------------------------------------------------- 115 118 print 'Setup computational domain' 116 from caching import cache 117 domain = cache(Domain, (meshes_dir_name), {'use_cache':True, 'verbose':True}, verbose=True) 119 #from caching import cache 120 121 #domain = cache(Domain, (meshes_dir_name), {'use_cache':True, 'verbose':True}, verbose=True) 122 #above don't work 123 domain = Domain(meshes_dir_name, use_cache=True, verbose=True) 118 124 print 'domain id', id(domain) 119 125 print 'myhash', myhash(domain) … … 166 172 # filename = project.combined_dir_name + '.pts', 167 173 # MUST USE TXT FILES FOR CACHING TO WORK! 168 filename = project.combined_ smallest_dir_name + '.txt',174 filename = project.combined_dir_name + '.txt', 169 175 use_cache = True, 170 176 verbose = True, … … 203 209 print 'Reading Boundary file',project.boundaries_dir_name4 + '.sww' 204 210 #Bf = File_boundary(boundaries_dir_name + '.sww', 205 Bf = File_boundary(project.boundaries_dir_name3 + '.sww', 206 domain, time_thinning=24, use_cache=True, verbose=True) 211 #Bf = File_boundary(project.boundaries_dir_name3 + '.sww', 212 # domain, time_thinning=24, use_cache=True, verbose=True) 213 Bf = Field_boundary(project.boundaries_dir_namea + '.sww', 214 domain, time_thinning=12,mean_stage=tide, use_cache=True, verbose=True) 207 215 208 216 print 'finished reading boundary file' … … 226 234 t0 = time.time() 227 235 228 for t in domain.evolve(yieldstep = 60, finaltime = 3400):236 for t in domain.evolve(yieldstep = 60, finaltime = 29990): 229 237 domain.write_time() 230 238 domain.write_boundary_statistics(tags = 'ocean') -
anuga_work/production/dampier_2006/run_dampier_simple.py
r4311 r4357 17 17 # Standard modules 18 18 from os import sep 19 from os.path import dirname, basename 19 from os.path import dirname, basename, 20 20 from os import mkdir, access, F_OK 21 21 from shutil import copy
Note: See TracChangeset
for help on using the changeset viewer.