Changeset 6165
 Timestamp:
 Jan 14, 2009, 3:55:08 PM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/fit_interpolate/test_interpolate.py
r6164 r6165 1366 1366 1367 1367 # One quantity 1368 Q = zeros((8,6), num.Float)1368 Q = num.zeros((8,6), num.Float) 1369 1369 1370 1370 # Linear in time and space … … 1386 1386 for j in range(90): #t in [1, 10] 1387 1387 for id in range(len(interpolation_points)): 1388 assert allclose(I(t, id), t*answer[id])1388 assert num.allclose(I(t, id), t*answer[id]) 1389 1389 t += 0.1 1390 1390 … … 1400 1400 1401 1401 assert len(I.time) == 4 1402 assert ( allclose(I.time, [1.0, 4.0, 7.0, 9.0] ))1402 assert num.allclose(I.time, [1.0, 4.0, 7.0, 9.0]) 1403 1403 1404 1404 answer = linear_function(interpolation_points) … … 1407 1407 for j in range(80): #t in [1, 9] 1408 1408 for id in range(len(interpolation_points)): 1409 assert allclose(I(t, id), t*answer[id])1409 assert num.allclose(I(t, id), t*answer[id]) 1410 1410 t += 0.1 1411 1411
Note: See TracChangeset
for help on using the changeset viewer.