Ignore:
Timestamp:
Feb 12, 2007, 5:18:20 PM (18 years ago)
Author:
duncan
Message:

the point file blocking line size can now be changed in domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py

    r4253 r4254  
    2121from anuga.geospatial_data.geospatial_data import Geospatial_data
    2222from anuga.fit_interpolate.fit import fit_to_mesh
     23from anuga.config import points_file_block_line_size as default_block_line_size
    2324
    2425class Quantity:
     
    356357                                        use_cache = use_cache)
    357358        elif filename is not None:
     359            if hasattr(self.domain, 'points_file_block_line_size'):
     360                max_read_lines = self.domain.points_file_block_line_size
     361            else:
     362                max_read_lines = default_block_line_size
    358363            self.set_values_from_file(filename, attribute_name, alpha,
    359364                                      location, indices,
    360365                                      verbose = verbose,
     366                                      max_read_lines=max_read_lines,
    361367                                      use_cache = use_cache)
    362368        else:
     
    738744        coordinates = self.domain.get_nodes(absolute=True)
    739745        triangles = self.domain.triangles      #FIXME
    740        
     746            
    741747        vertex_attributes = fit_to_mesh(coordinates, triangles,filename,
    742748                                        alpha=alpha,
Note: See TracChangeset for help on using the changeset viewer.