Changeset 6258
- Timestamp:
- Feb 2, 2009, 5:07:32 PM (16 years ago)
- 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 542 542 conserved_quantities =\ 543 543 ['stage', 'xmomentum', 'ymomentum']) 544 domain.set_default_order(1) 544 545 domain.check_integrity() 545 546 … … 548 549 [0,0,9], [-6, 3, 3]]) 549 550 550 assert num.allclose( 551 [2,5,3,0])551 assert num.allclose(domain.quantities['stage'].centroid_values, 552 [2,5,3,0]) 552 553 553 554 domain.set_quantity('xmomentum', [[1,1,1], [2,2,2], … … 560 561 domain.distribute_to_vertices_and_edges() 561 562 562 # First order extrapolation563 # First order extrapolation 563 564 assert num.allclose( domain.quantities['stage'].vertex_values, 564 565 [[ 2., 2., 2.], … … 650 651 conserved_quantities =\ 651 652 ['stage', 'xmomentum', 'ymomentum']) 653 domain.set_default_order(1) 652 654 domain.check_integrity() 653 655 … … 667 669 domain.distribute_to_vertices_and_edges() 668 670 669 # First order extrapolation671 # First order extrapolation 670 672 assert num.allclose( domain.quantities['stage'].vertex_values, 671 673 [[ 2., 2., 2.], -
anuga_core/source/anuga/config.py
r6108 r6258 89 89 90 90 # 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 91 default_order = 2 93 92 94 93 ################################################################################ -
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r6257 r6258 1756 1756 points, vertices, boundary = rectangular_cross(10, 10) # Basic mesh 1757 1757 domain = Domain(points, vertices, boundary) # Create domain 1758 domain.set_default_order(1) 1758 1759 domain.set_quantities_to_be_stored(None) 1759 1760 domain.set_maximum_allowed_speed(100) #FIXME (Ole): try to remove this
Note: See TracChangeset
for help on using the changeset viewer.