Changeset 1259


Ignore:
Timestamp:
Apr 28, 2005, 6:00:40 PM (20 years ago)
Author:
steve
Message:

Playing wiht tps viewer

Location:
inundation/ga/storm_surge
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution-parallel/general_mesh.py

    r1237 r1259  
    4747
    4848
    49         This is a cut down version of mesh from pyvolution\mesh.py
     49        This is a cut down version of mesh from pyvolution mesh.py
    5050    """
    5151
     
    278278
    279279        return sum(self.areas)
    280 
  • inundation/ga/storm_surge/pyvolution-parallel/least_squares.py

    r1178 r1259  
    872872            %os.path.basename(sys.argv[0])
    873873
     874
     875
    874876    if len(sys.argv) < 4:
    875877        print usage
     
    897899        else:
    898900            alpha = DEFAULT_ALPHA
     901
     902        print "alpha = ",alpha
    899903
    900904        t0 = time.time()
  • inundation/ga/storm_surge/steve/run_merimbula.py

    r1162 r1259  
    66import least_squares
    77
     8alpha = 0.1
     9mesh_file = 'merimbula_10785.tsh'
     10point_file = 'meri0.xya'
     11mesh_output_file = 'merimbula_10785_%g.tsh'%alpha
    812
    9 mesh_file = 'Merimbula_17540_refined.tsh'
    10 point_file = 'XYmerimbula_bathymetry.xya'
    11 mesh_output_file = 'Merimbula_17540_refined_bathymetry.tsh'
     13print mesh_output_file
    1214
    1315
    1416least_squares.fit_to_mesh_file(mesh_file, point_file, mesh_output_file,
    15                      alpha=0.001, verbose= True,
     17                     alpha=alpha, verbose= True,
    1618                     expand_search = False,
    1719                     data_origin = None,
    1820                     mesh_origin = None,
    19                      precrop = True)
     21                     precrop = False)
     22
     23
     24from shallow_water import Domain
     25from pmesh2domain import pmesh_to_domain_instance
     26from util import file_function, Polygon_function, read_polygon
     27from Numeric import zeros, Float
     28
     29#-------
     30# Domain
     31filename = mesh_output_file 
     32print 'Creating domain from', filename
     33domain = pmesh_to_domain_instance(filename, Domain)
     34print "Number of triangles = ", len(domain)
  • inundation/ga/storm_surge/zeus/pyvolution-parallel.zpi

    r1231 r1259  
    7878    <file>..\pyvolution-parallel\cg_solve.py</file>
    7979    <file>..\pyvolution-parallel\check_sww_tsh.py</file>
     80    <file>..\pyvolution-parallel\chris-dump.py</file>
    8081    <file>..\pyvolution-parallel\combine_pts.py</file>
    8182    <file>..\pyvolution-parallel\compile.py</file>
     
    9697    <file>..\pyvolution-parallel\most2nc.py</file>
    9798    <file>..\pyvolution-parallel\netherlands.py</file>
     99    <file>..\pyvolution-parallel\netherlands-chris.py</file>
    98100    <file>..\pyvolution-parallel\pmesh2domain.py</file>
    99101    <file>..\pyvolution-parallel\pressure_force.py</file>
  • inundation/ga/storm_surge/zeus/steve.zpi

    r1162 r1259  
    7373    <ReleaseProjectSaveAll>Off</ReleaseProjectSaveAll>
    7474    <ReleaseProjectReload>Off</ReleaseProjectReload>
     75    <file>..\steve\get_triangle_data.py</file>
    7576    <file>..\steve\run_merimbula.py</file>
    7677    <folder name="Header Files" />
Note: See TracChangeset for help on using the changeset viewer.