Changeset 1629 for inundation


Ignore:
Timestamp:
Jul 22, 2005, 3:18:23 PM (19 years ago)
Author:
steve
Message:
 
Location:
inundation/ga/storm_surge
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/parallel

    • Property svn:externals
      •  

        old new  
        1 pypar https://datamining.anu.edu.au/svn/ga/pypar
         1pypar-src https://datamining.anu.edu.au/svn/ga/pypar
  • inundation/ga/storm_surge/parallel/run_parallel_merimbula.py

    r1580 r1629  
    5454#from shallow_water import Domain
    5555
     56from pmesh2domain import pmesh_to_domain_instance
    5657from advection import Domain as Advection_Domain
    5758from parallel_advection import Parallel_Domain
     
    7778    def __call__(self, x, y):
    7879        return self.h*((x>self.x0)&(x<self.x1))
    79    
     80
    8081# read in the processor information
    8182
     
    9394    # read in the test files
    9495
    95 #    filename = 'test-100.tsh'
    96     filename = 'merimbula_10785.tsh'
    97     nx = 2
     96    filename = 'test-100.tsh'
     97#    filename = 'merimbula_10785.tsh'
     98    nx = numprocs
    9899    ny = 1
    99100    if nx*ny != numprocs:
     
    101102
    102103    domain_full = pmesh_to_domain_instance(filename, Domain)
    103 #    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
    104     domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))
    105    
     104    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
     105#    domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))
     106
    106107    nodes, triangles, boundary, triangles_per_proc, quantities  =\
    107108            pmesh_divide(domain_full, nx, ny)
  • inundation/ga/storm_surge/parallel/run_parallel_sw_merimbula.py

    r1607 r1629  
    9292    # read in the test files
    9393
    94 #    filename = 'test-100.tsh'
    95     filename = 'merimbula_10785_1.tsh'
     94    filename = 'test-100.tsh'
     95#    filename = 'merimbula_10785_1.tsh'
    9696    nx = numprocs
    9797    ny = 1
     
    101101    domain_full = pmesh_to_domain_instance(filename, Domain)
    102102
    103 #    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
    104     domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0))
     103    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
     104#    domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0))
    105105
    106106    nodes, triangles, boundary, triangles_per_proc, quantities = \
     
    148148try:
    149149    domain.initialise_visualiser(rect=rect)
    150     domain.visualiser.coloring['stage'] = True
     150    #domain.visualiser.coloring['stage'] = True
    151151    domain.visualiser.scale_z['stage'] = 0.2
    152152    domain.visualiser.scale_z['elevation'] = 0.05
     
    176176
    177177print 'Processor %d on %s: No of elements %d'%(domain.processor,processor_name,domain.number_of_elements)
    178 yieldstep = 10.0
     178yieldstep = 0.05
    179179finaltime = 500.0
    180180
  • inundation/ga/storm_surge/pyvolution/run_profile.py

    r1627 r1629  
    66
    77######################
    8 # Module imports 
     8# Module imports
    99#
    1010from shallow_water import Domain, Reflective_boundary, Dirichlet_boundary,\
     
    1414from mesh_factory import rectangular
    1515from Numeric import array
    16    
     16
    1717
    1818######################
     
    3535def slope(x, y):
    3636    return -x
    37    
     37
    3838domain.set_quantity('elevation', slope)
    3939domain.set_quantity('friction', 0.3)
     
    5151
    5252domain.check_integrity()
    53  
     53
    5454
    5555######################
     
    6767
    6868profile.run(s, FN)
    69    
     69
    7070print 'That took %.2f seconds' %(time.time()-t0)
    7171
  • inundation/ga/storm_surge/zeus/anuga-workspace.zwi

    r1597 r1629  
    22<workspace name="anuga-workspace">
    33    <mode>Debug</mode>
    4     <active>pyvolution</active>
     4    <active>parallel</active>
    55    <project name="Merimbula">Merimbula.zpi</project>
    66    <project name="parallel">parallel.zpi</project>
  • inundation/ga/storm_surge/zeus/parallel.zpi

    r1558 r1629  
    8686    <file>..\parallel\run_parallel_mesh.py</file>
    8787    <file>..\parallel\run_parallel_sw_merimbula.py</file>
     88    <file>..\parallel\run_sw_lost_mass.py</file>
    8889    <folder name="Header Files" />
    8990    <folder name="Resource Files" />
Note: See TracChangeset for help on using the changeset viewer.