Ignore:
Timestamp:
Nov 21, 2007, 9:40:40 AM (16 years ago)
Author:
steve
Message:

Changed exception in fit_interpolation from ToFewPointsError? to
TooFewPointsError?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/convergence_study/convergence_structured.py

    r4722 r4838  
    2323# Setup computational domain
    2424#------------------------------------------------------------------------------
    25 dx = 200.
     25dx = 100.
    2626dy = dx
    2727L = 100000.
    28 W = 3000.
     28W = dx
    2929
    3030# structured mesh
     
    3535#points, vertices, boundary = rectangular_cross(1000, 100, 20, 3) # Basic mesh
    3636domain = Domain(points, vertices, boundary)
    37 domain.set_timestepping_method('rk2')
    38 domain.set_default_order(2)
     37
     38
    3939## # unstructured mesh
    4040## poly_domain = [[0,-W],[0,W],[L,W],[L,-W]]
     
    5050## # Create domain
    5151## domain = Domain(meshname, use_cache=True, verbose = True)
    52 domain.set_name('myexample6')               
     52
     53domain.set_timestepping_method('euler')
     54domain.set_default_order(2)
     55domain.set_name('myexample9')               
    5356domain.set_datadir('.')                     # Use current directory for output
     57
     58domain.beta_w      = 100.0
     59domain.beta_w_dry  = 0.2
     60domain.beta_uh     = 100.0
     61domain.beta_uh_dry = 0.2
     62domain.beta_vh     = 100.0
     63domain.beta_vh_dry = 0.2
     64domain.beta_h      = 100.0
    5465
    5566#------------------------------------------------------------------------------
     
    8394domain.set_boundary({'left': Bw, 'right': Bt, 'top': Br, 'bottom': Br})
    8495
    85 #from anuga.visualiser import RealtimeVisualiser
    86 #vis = RealtimeVisualiser(domain)
    87 #vis.render_quantity_height("elevation", dynamic=False)
    88 #vis.render_quantity_height("stage", dynamic=True)
    89 #vis.colour_height_quantity('stage', (0.0, 0.0, 0.8))
    90 #vis.start()
     96## from anuga.visualiser import RealtimeVisualiser
     97## vis = RealtimeVisualiser(domain)
     98## vis.render_quantity_height("elevation", dynamic=False)
     99## vis.render_quantity_height("stage", dynamic=True, zScale=100.0)
     100## #vis.colour_height_quantity('stage', (0.0, 0.0, 0.8))
     101## vis.colour_height_quantity('stage', (lambda q:q['stage'], -1, 1))
     102## vis.start()
    91103
    92104#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.