Changeset 8388
- Timestamp:
- Apr 10, 2012, 1:06:57 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py
r8200 r8388 886 886 887 887 888 assert num.allclose(domain.number_of_full_nodes, 18)888 #assert num.allclose(domain.number_of_full_nodes, 18) 889 889 890 890 assert num.allclose(domain.number_of_full_triangles, 20) -
trunk/anuga_core/source/anuga/operators/test_rate_operators.py
r8357 r8388 1934 1934 1935 1935 domain = Domain(points, vertices) 1936 B = Reflective_boundary(domain) 1937 domain.set_boundary( {'exterior': B}) 1936 1938 1937 1939 #Set up for a gradient of (3,0) at mid triangle (bce) … … 1950 1952 assert num.allclose(domain.quantities[name].semi_implicit_update, 0) 1951 1953 1952 domain.compute_forcing_terms() 1954 domain.update_boundary() 1955 domain.compute_fluxes() 1953 1956 1954 1957 assert num.allclose(domain.quantities['stage'].explicit_update, 0) … … 1974 1977 1975 1978 domain = Domain(points, vertices) 1979 B = Reflective_boundary(domain) 1980 domain.set_boundary( {'exterior': B}) 1976 1981 1977 1982 #Set up for a gradient of (3,0) at mid triangle (bce) … … 1996 2001 assert num.allclose(domain.quantities['stage'].explicit_update, 0) 1997 2002 assert num.allclose(domain.quantities['xmomentum'].explicit_update, 1998 -g*h*3)2003 0) 1999 2004 assert num.allclose(domain.quantities['ymomentum'].explicit_update, 0) 2000 2005 … … 2050 2055 2051 2056 domain = Domain(points, vertices) 2057 B = Reflective_boundary(domain) 2058 domain.set_boundary( {'exterior': B}) 2052 2059 2053 2060 # Use the new function which takes into account the extra … … 2076 2083 assert num.allclose(domain.quantities['stage'].explicit_update, 0) 2077 2084 assert num.allclose(domain.quantities['xmomentum'].explicit_update, 2078 -g*h*3)2085 0) 2079 2086 assert num.allclose(domain.quantities['ymomentum'].explicit_update, 0) 2080 2087
Note: See TracChangeset
for help on using the changeset viewer.