Changeset 4171
- Timestamp:
- Jan 11, 2007, 2:58:04 PM (18 years ago)
- Location:
- anuga_core/source/anuga/abstract_2d_finite_volumes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py
r3514 r4171 270 270 domain.check_integrity() 271 271 272 272 assert allclose(domain.neighbours, [[-1,-2,-3]]) 273 273 274 274 -
anuga_core/source/anuga/abstract_2d_finite_volumes/test_general_mesh.py
r3954 r4171 70 70 domain = General_mesh(points, vertices) 71 71 72 72 assert domain.get_area() == 1.0 73 73 74 74 -
anuga_core/source/anuga/abstract_2d_finite_volumes/test_generic_boundary_conditions.py
r3563 r4171 168 168 169 169 #Check that midpoint coordinates at boundary are correctly computed 170 170 assert allclose( F.midpoint_coordinates, 171 171 [[1.0, 0.0], [0.0, 1.0], [3.0, 0.0], 172 172 [3.0, 1.0], [1.0, 3.0], [0.0, 3.0]]) -
anuga_core/source/anuga/abstract_2d_finite_volumes/test_neighbour_mesh.py
r3945 r4171 400 400 401 401 points, vertices, boundary = rectangular(M, N) 402 402 mesh = Mesh(points, vertices, boundary) 403 403 404 404 #Test that points are arranged in a counter clock wise order … … 408 408 N=2 409 409 points, vertices, boundary = rectangular(M, N) 410 410 mesh = Mesh(points, vertices, boundary) 411 411 412 412 #Test that points are arranged in a counter clock wise order … … 422 422 423 423 points, vertices, boundary = rectangular(4, 4) 424 424 mesh = Mesh(points, vertices, boundary) 425 425 426 426 … … 451 451 452 452 points, vertices, boundary = rectangular(M, N, len1, len2) 453 453 mesh = Mesh(points, vertices, boundary) 454 454 455 455 assert len(mesh) == 2*M*N … … 472 472 473 473 points, vertices, boundary = rectangular(2*N, N, len1=10, len2=10) 474 474 mesh = Mesh(points, vertices, boundary) 475 475 476 476 … … 985 985 # Then do the discontinuous version 986 986 import warnings 987 987 warnings.filterwarnings('ignore') 988 988 989 989 -
anuga_core/source/anuga/abstract_2d_finite_volumes/test_quantity.py
r4130 r4171 10 10 11 11 from anuga.fit_interpolate.fit import fit_to_mesh 12 #from anuga.pyvolution.least_squares import fit_to_mesh 12 #from anuga.pyvolution.least_squares import fit_to_mesh 13 13 from domain import Domain 14 14 from anuga.geospatial_data.geospatial_data import Geospatial_data … … 1207 1207 1208 1208 1209 1210 1211 1209 assert A.shape[0] == 9 1210 assert V.shape[0] == 8 1211 assert V.shape[1] == 3 1212 1212 1213 1213 #First four points
Note: See TracChangeset
for help on using the changeset viewer.