Ignore:
Timestamp:
Sep 27, 2013, 10:36:23 AM (11 years ago)
Author:
steve
Message:

Changing inlets to take into account the apron.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/run_parallel_gate_operator.py

    r8877 r8994  
    22import sys
    33
    4 from anuga.utilities.system_tools import get_pathname_from_package
    5 from anuga.geometry.polygon_function import Polygon_function
     4#from anuga.utilities.system_tools import get_pathname_from_package
     5#from anuga.geometry.polygon_function import Polygon_function
    66       
    7 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
    8 from anuga.abstract_2d_finite_volumes.quantity import Quantity
     7#from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
     8#from anuga.abstract_2d_finite_volumes.quantity import Quantity
    99
    1010import anuga
     
    1616import numpy as num
    1717
    18 from anuga_parallel import distribute, myid, numprocs, finalize, barrier
     18from anuga import distribute, myid, numprocs, finalize, barrier
    1919
    20 from parallel_operator_factory import Inlet_operator, Boyd_box_operator
     20from anuga import Inlet_operator, Boyd_box_operator
    2121
    2222
     
    5656    return z
    5757
    58 
    59 """test_that_culvert_runs_rating
    60 
    61 This test exercises the culvert and checks values outside rating curve
    62 are dealt with       
    63 """
    64 
    65 path = get_pathname_from_package('anuga.culvert_flows')   
     58 
    6659
    6760length = 40.
     
    7366if myid == 0:
    7467
    75     points, vertices, boundary = rectangular_cross(int(length/dx),
    76                                                int(width/dy),
    77                                                len1=length,
    78                                                len2=width)
     68    points, vertices, boundary = anuga.rectangular_cross(int(length/dx),
     69                                                         int(width/dy),
     70                                                         len1=length,
     71                                                         len2=width)
    7972    domain = anuga.Domain(points, vertices, boundary)
    80     domain.set_name('run_gate_operator')                 # Output name
     73    domain.set_name()                 # Output name
    8174    domain.set_flow_algorithm('2_0')
    8275
Note: See TracChangeset for help on using the changeset viewer.