Ignore:
Timestamp:
Jun 7, 2010, 10:19:51 AM (13 years ago)
Author:
hudson
Message:

Adapted validation tests to use new API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/run_okushiri.py

    r6046 r7795  
    2222
    2323# Module imports
    24 from anuga.shallow_water import Domain
    25 from anuga.shallow_water import Reflective_boundary
    26 from anuga.shallow_water import Transmissive_momentum_set_stage_boundary
    27 from anuga.abstract_2d_finite_volumes.util import file_function
     24import anuga
    2825
    2926import project
     
    3330    # Create Domain from mesh
    3431    #-------------------------
    35     domain = Domain(project.mesh_filename, use_cache=False, verbose=True)
     32    domain = anuga.Domain(project.mesh_filename, use_cache=False, verbose=True)
    3633    print domain.statistics()
    3734
     
    6360
    6461    # Create boundary function from timeseries provided in file
    65     function = file_function(project.boundary_filename,
     62    function = anuga.file_function(project.boundary_filename,
    6663                             domain, verbose=True)
    6764
    6865    # Create and assign boundary objects
    69     Bts = Transmissive_momentum_set_stage_boundary(domain, function)
    70     Br = Reflective_boundary(domain)
     66    Bts = anuga.Transmissive_momentum_set_stage_boundary(domain, function)
     67    Br = anuga.Reflective_boundary(domain)
    7168    domain.set_boundary({'wave': Bts, 'wall': Br})
    7269
Note: See TracChangeset for help on using the changeset viewer.