Ignore:
Timestamp:
May 12, 2008, 11:52:22 AM (17 years ago)
Author:
ole
Message:

Made the flow_through_cross_section test a bit smaller and faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r5303 r5308  
    75287528        from mesh_factory import rectangular
    75297529
    7530         # Create basic mesh (100m x 5m)
    7531         width = 5
    7532         length = 50
     7530        # Create basic mesh (20m x 3m)
     7531        width = 3
     7532        length = 20
    75337533        t_end = 3
    75347534        points, vertices, boundary = rectangular(length, width,
     
    75827582
    75837583        # Check flows through the middle
    7584         for i in range(10):
     7584        for i in range(5):
    75857585            x = length/2. + i*0.23674563 # Arbitrary
    75867586            cross_section = [[x, 0], [x, width]]
     
    75957595        # Try the same with partial lines
    75967596        x = length/2.
    7597         for i in range(10):
    7598             start_point = [length/2., i*width/10.]
     7597        for i in range(5):
     7598            start_point = [length/2., i*width/5.]
    75997599            #print start_point
    76007600                           
     
    76577657        from mesh_factory import rectangular
    76587658
    7659         # Create basic mesh (100m x 5m)
    7660         width = 5
    7661         length = 50
     7659        # Create basic mesh (20m x 3m)
     7660        width = 3
     7661        length = 20
    76627662        t_end = 1
    76637663        points, vertices, boundary = rectangular(length, width,
     
    77147714
    77157715        # Check flows through the middle
    7716         for i in range(10):
     7716        for i in range(5):
    77177717            x = length/2. + i*0.23674563 # Arbitrary
    77187718            cross_section = [[x, 0], [x, width]]
Note: See TracChangeset for help on using the changeset viewer.