Changeset 4357 for anuga_work/production


Ignore:
Timestamp:
Apr 4, 2007, 12:43:19 PM (18 years ago)
Author:
nick
Message:

update to dampier

Location:
anuga_work/production/dampier_2006
Files:
6 edited

Legend:

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

    r4282 r4357  
    158158cache(urs2sww,
    159159      (boundaries_in_dir_name,
    160        project.boundaries_dir_name+'2'),
     160       project.boundaries_dir_name+'a'),
    161161      {'verbose': True,
    162162       'minlat': project.south_boundary,
     
    164164       'minlon': project.west_boundary,
    165165       'maxlon': project.east_boundary,
    166        'mint': 8500, 'maxt': 12000,
     166       'mint': 5000, 'maxt': 35000,
    167167#       'origin': domain.geo_reference.get_origin(),
    168        'mean_stage': project.tide,
     168#       'mean_stage': project.tide,
    169169       'zscale': 1,                 #Enhance tsunami
    170170       'fail_on_NaN': False},
  • anuga_work/production/dampier_2006/check_data.py

    r4308 r4357  
    2020#run_time = '20070305_055256_run'
    2121#run_time = '20070305_134855_run'
    22 run_time = '20070307_041139_run'
     22run_time = '20070321_164505_run'
    2323
    2424topo = 'topographies'
  • anuga_work/production/dampier_2006/get_timeseries_and.py

    r4311 r4357  
    3535bo = 'boundaries'
    3636
    37 run_time = '20070321_164505_run'
    38 production_dirs = {#run_time: 'URS evolved data'#,
    39                    'boundaries': 'URS boundary condition'
     37run_time = '20070311_225041_run'
     38production_dirs = {run_time: 'URS evolved data'#,
     39                   #'boundaries': 'URS boundary condition'
    4040                   }
    4141
     
    152152        b_sample.append(float(b_stage[i]))
    153153        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]
    155155        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)
    156156        j = j +1
     
    158158
    159159
    160 print len(b_sample), len(e_stage)
    161 e_stage = e_stage.tolist().pop()
    162 e_stage = e_stage.tolist().pop()
     160print len(b_sample), len(e_stage),e_stage,type(e_stage)
     161e_stage = e_stage.tolist()
     162e_stage.pop()
     163#e_stage = e_stage.tolist().pop()
     164e_stage.pop()
     165#e_stage.pop()
    163166 
    164 print len(b_sample), len(e_stage)
     167print len(b_sample), len(e_stage),e_stage
    165168#assert allclose (b_sample, e_sample, 0.5, 0.5)
    166169
    167 assert allclose (b_sample, e_stage, 0.5, 0.5)
     170assert allclose (b_sample, e_stage, 0.2, 0.2)
    168171print "test successful"
    169172
  • anuga_work/production/dampier_2006/project.py

    r4311 r4357  
    9595boundaries_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep
    9696boundaries_dir_name = boundaries_dir + boundaries_name
     97boundaries_dir_namea = boundaries_dir + boundaries_name+'_5000_35000'
    9798boundaries_dir_name1 = boundaries_dir + boundaries_name1
    9899boundaries_dir_name2 = boundaries_dir + boundaries_name2
  • anuga_work/production/dampier_2006/run_dampier.py

    r4308 r4357  
    4444
    4545start_screen_catcher(project.output_run_time_dir, myid, numprocs)
     46
    4647print "Processor Name:",get_processor_name()
     48barrier()
    4749
    4850# filenames
     
    8284
    8385sys.exit()
    84 
     86'''
    8587if myid == 0:
    8688   
     
    9395                                            'ocean': [5]},
    9496                             maximum_triangle_area=project.res_poly_all,
    95                              interior_regions=project.interior_regions_test,
     97                             interior_regions=project.interior_regions,
    9698                             filename=meshes_dir_name,
    9799                             use_cache=True,
     
    105107                                            'ocean': [5]},
    106108                             maximum_triangle_area=project.res_poly_all,
    107                              interior_regions=project.interior_regions_test,
     109#                             interior_regions=project.interior_regions,
     110                             interior_regions=None,
    108111                             filename=meshes_dir_name,
    109                              use_cache=True,
     112                             use_cache=False,
    110113                             verbose=True)
    111 
     114'''
    112115#-------------------------------------------------------------------------
    113116# Setup computational domain
    114117#-------------------------------------------------------------------------
    115118print '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
     123domain = Domain(meshes_dir_name, use_cache=True, verbose=True)
    118124print 'domain id', id(domain)
    119125print 'myhash', myhash(domain)     
     
    166172#                    filename = project.combined_dir_name + '.pts',
    167173# MUST USE TXT FILES FOR CACHING TO WORK!
    168                     filename = project.combined_smallest_dir_name + '.txt',
     174                    filename = project.combined_dir_name + '.txt',
    169175                    use_cache = True,
    170176                    verbose = True,
     
    203209print 'Reading Boundary file',project.boundaries_dir_name4 + '.sww'
    204210#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)
     213Bf = Field_boundary(project.boundaries_dir_namea + '.sww',
     214                  domain, time_thinning=12,mean_stage=tide, use_cache=True, verbose=True)
    207215
    208216print 'finished reading boundary file'
     
    226234t0 = time.time()
    227235
    228 for t in domain.evolve(yieldstep = 60, finaltime = 3400):
     236for t in domain.evolve(yieldstep = 60, finaltime = 29990):
    229237    domain.write_time()
    230238    domain.write_boundary_statistics(tags = 'ocean')
  • anuga_work/production/dampier_2006/run_dampier_simple.py

    r4311 r4357  
    1717# Standard modules
    1818from os import sep
    19 from os.path import dirname, basename
     19from os.path import dirname, basename,
    2020from os import mkdir, access, F_OK
    2121from shutil import copy
Note: See TracChangeset for help on using the changeset viewer.