Changeset 9390
- Timestamp:
- Jan 8, 2015, 3:48:15 PM (10 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/region.py
r9054 r9390 241 241 242 242 if not self.domain.parallel: 243 msg = 'No centroids found for polygon %s '% str(self.polygon) 244 if len(indices) is 0: raise Exception(msg) 243 # only warn if not parallel as we should get lots of subdomains without indices 244 if len(indices) is 0: 245 msg = 'No centroids found for polygon %s '% str(self.polygon) 246 import warnings 247 warnings.warn(msg) 245 248 246 249 -
trunk/anuga_core/source/anuga/fit_interpolate/interpolate.py
r9256 r9390 914 914 for i, t in enumerate(self.time): 915 915 # Interpolate quantities at this timestep 916 if verbose and i%((p+10)/10) == 0: 916 #if verbose and i%((p+10)/10) == 0: 917 if verbose: 917 918 log.critical(' time step %d of %d' % (i, p)) 918 919 … … 923 924 Q = quantities[name][:] # No time dependency 924 925 925 if verbose and i%((p+10)/10) == 0: 926 #if verbose and i%((p+10)/10) == 0: 927 if verbose: 926 928 log.critical(' quantity %s, size=%d' % (name, len(Q))) 927 929 -
trunk/anuga_core/validation_tests/case_studies/merewether/plot_hydrograph.py
r9387 r9390 100 100 101 101 102 def get_interpolated_quantities_at_polyline_midpoints(filename,103 quantity_names=None,104 polyline=None,105 verbose=False):106 107 108 109 110 return segments, I111 112 113 102 #=================================================================================== 114 103
Note: See TracChangeset
for help on using the changeset viewer.