Changeset 3941
- Timestamp:
- Nov 8, 2006, 4:21:45 PM (17 years ago)
- Location:
- anuga_core/source/anuga/fit_interpolate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/interpolate.py
r3900 r3941 459 459 self.spatial = False 460 460 else: 461 vertex_coordinates = ensure_ numeric(vertex_coordinates)461 vertex_coordinates = ensure_absolute(vertex_coordinates) 462 462 463 463 assert triangles is not None, 'Triangles array must be specified' -
anuga_core/source/anuga/fit_interpolate/test_interpolate.py
r3900 r3941 1012 1012 #Three timesteps 1013 1013 time = [1.0, 5.0, 6.0] 1014 1015 1014 1016 1015 #Setup mesh used to represent fitted function 1017 1016 a = [0.0, 0.0] … … 1054 1053 for id in range(len(interpolation_points)): 1055 1054 assert allclose(I(t, id), answer[id]) 1056 1057 1055 t += 0.1 1058 1059 1056 1060 1057 try: … … 1064 1061 else: 1065 1062 raise 'Should raise exception' 1063 1066 1064 1067 1068 1069 1065 def test_interpolation_interface(self): 1070 1066 # Test spatio-temporal interpolation
Note: See TracChangeset
for help on using the changeset viewer.