Changeset 6223 for anuga_core/source/anuga/fit_interpolate/interpolate.py
- Timestamp:
- Jan 21, 2009, 4:37:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/interpolate.py
r6194 r6223 794 794 795 795 if verbose is True: 796 print 'Interpolation_function: thinning '796 print 'Interpolation_function: thinning by %d' % time_thinning 797 797 798 798 … … 915 915 self.precomputed_values[name] = num.zeros((p, m), num.Float) 916 916 917 if verbose is True: 918 print 'Build interpolator' 919 920 917 921 # Build interpolator 918 if verbose:919 if triangles is not None and vertex_coordinates is not None:922 if triangles is not None and vertex_coordinates is not None: 923 if verbose: 920 924 msg = 'Building interpolation matrix from source mesh ' 921 925 msg += '(%d vertices, %d triangles)' \ 922 926 % (vertex_coordinates.shape[0], 923 927 triangles.shape[0]) 924 elif triangles is None and vertex_coordinates is not None: 925 msg = 'Building interpolation matrix from source points' 928 print msg 926 929 927 print msg 928 929 # FIXME(Ole): This one is no longer needed for STS files 930 interpol = Interpolate(vertex_coordinates, 931 triangles, 932 verbose=verbose) 930 # This one is no longer needed for STS files 931 interpol = Interpolate(vertex_coordinates, 932 triangles, 933 verbose=verbose) 934 935 elif triangles is None and vertex_coordinates is not None: 936 if verbose: 937 msg = 'Interpolation from STS file' 938 print msg 939 940 933 941 934 942 if verbose:
Note: See TracChangeset
for help on using the changeset viewer.