Changeset 3018 for inundation/fit_interpolate
- Timestamp:
- May 30, 2006, 2:48:18 PM (19 years ago)
- Location:
- inundation/fit_interpolate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/fit_interpolate/interpolate.py
r2884 r3018 235 235 #print "self.outside_poly_indices",self.outside_poly_indices 236 236 #Build n x m interpolation matrix 237 if verbose and len(self.outside_poly_indices) >0: 238 print '\n WARNING: Points outside mesh boundary. \n' 237 239 m = self.mesh.coordinates.shape[0] #Nbr of basis functions (1/vertex) 238 240 n = point_coordinates.shape[0] #Nbr of data points -
inundation/fit_interpolate/test_interpolate.py
r2995 r3018 486 486 #print "***********" 487 487 488 #Should an error message be returned if points are outside489 # of the mesh? Not currently.490 491 488 assert allclose(z, answer) 492 489 … … 523 520 [10., 15., 15., -5.]] # (5,5) 524 521 525 z = interp.interpolate(f, point_coords) 522 z = interp.interpolate(f, point_coords) #, verbose=True) 526 523 answer = array([ [INF, INF, INF, INF]]) # (-1,-1) 527 524 … … 532 529 533 530 #Should an error message be returned if points are outside 534 # of the mesh? Not currently. 531 # of the mesh? 532 # A warning message is printed, if verbose is on. 535 533 536 534 for i in range(4):
Note: See TracChangeset
for help on using the changeset viewer.