- Timestamp:
- Feb 12, 2007, 4:20:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py
r4252 r4253 738 738 coordinates = self.domain.get_nodes(absolute=True) 739 739 triangles = self.domain.triangles #FIXME 740 741 742 # Use caching at this level until loading has been fixed. 743 if use_cache is True: 744 from anuga.caching import cache 745 vertex_attributes = cache(fit_to_mesh, 746 (coordinates, triangles, filename), 747 {'alpha': alpha, 748 'attribute_name': attribute_name, 749 'use_cache': False, 750 'verbose': verbose, 751 'max_read_lines':max_read_lines}, 752 verbose=verbose) 753 else: 754 vertex_attributes = fit_to_mesh(coordinates, triangles,filename, 755 alpha=alpha, 756 attribute_name=attribute_name, 757 use_cache=use_cache, 758 verbose=verbose, 759 max_read_lines=max_read_lines) 760 761 740 741 vertex_attributes = fit_to_mesh(coordinates, triangles,filename, 742 alpha=alpha, 743 attribute_name=attribute_name, 744 use_cache=use_cache, 745 verbose=verbose, 746 max_read_lines=max_read_lines) 747 762 748 #Call underlying method using array values 763 749 self.set_values_from_array(vertex_attributes, 764 750 location, indices, verbose) 765 766 #geospatial_data = Geospatial_data(filename)767 768 #self.set_values_from_geospatial_data(geospatial_data,769 # alpha,770 # location, indices,771 # verbose = verbose,772 # use_cache = use_cache)773 751 774 752
Note: See TracChangeset
for help on using the changeset viewer.