Changeset 6258


Ignore:
Timestamp:
Feb 2, 2009, 5:07:32 PM (16 years ago)
Author:
ole
Message:

Made second order accuracy the default and tested.

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py

    r6195 r6258  
    542542                        conserved_quantities =\
    543543                        ['stage', 'xmomentum', 'ymomentum'])
     544        domain.set_default_order(1)
    544545        domain.check_integrity()
    545546
     
    548549                                      [0,0,9], [-6, 3, 3]])
    549550
    550         assert num.allclose( domain.quantities['stage'].centroid_values,
    551                              [2,5,3,0] )
     551        assert num.allclose(domain.quantities['stage'].centroid_values,
     552                            [2,5,3,0])
    552553
    553554        domain.set_quantity('xmomentum', [[1,1,1], [2,2,2],
     
    560561        domain.distribute_to_vertices_and_edges()
    561562
    562         #First order extrapolation
     563        # First order extrapolation
    563564        assert num.allclose( domain.quantities['stage'].vertex_values,
    564565                             [[ 2.,  2.,  2.],
     
    650651                        conserved_quantities =\
    651652                        ['stage', 'xmomentum', 'ymomentum'])
     653        domain.set_default_order(1)                       
    652654        domain.check_integrity()
    653655
     
    667669        domain.distribute_to_vertices_and_edges()
    668670
    669         #First order extrapolation
     671        # First order extrapolation
    670672        assert num.allclose( domain.quantities['stage'].vertex_values,
    671673                             [[ 2.,  2.,  2.],
  • anuga_core/source/anuga/config.py

    r6108 r6258  
    8989       
    9090# FIXME (Ole) Maybe get rid of order altogether and use beta_w
    91 # ... and isn't it about time we make the default 2?
    92 default_order = 1
     91default_order = 2
    9392
    9493################################################################################
  • anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r6257 r6258  
    17561756        points, vertices, boundary = rectangular_cross(10, 10) # Basic mesh
    17571757        domain = Domain(points, vertices, boundary) # Create domain
     1758        domain.set_default_order(1)       
    17581759        domain.set_quantities_to_be_stored(None)
    17591760        domain.set_maximum_allowed_speed(100) #FIXME (Ole): try to remove this
Note: See TracChangeset for help on using the changeset viewer.