Changeset 6196


Ignore:
Timestamp:
Jan 19, 2009, 9:13:04 AM (10 years ago)
Author:
ole
Message:

Used refactoring from changeset:6191 to allow reuse of ANUGA mesh in fitting
by way of

Files:
2 edited

Legend:

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

    r6195 r6196  
    857857            raise msg
    858858
    859         if False: 
    860             # FIXME (Ole)
     859        if True: 
    861860            # Use mesh as defined by domain
    862             # This causes problems for caching
     861            # This used to cause problems for caching
    863862            # due to quantities changing, but
    864             # it would work if we only passed in
    865             # the appropriate Mesh object.
    866             # See ticket:242
     863            # it now works using the appropriate Mesh object.
     864            # This should close ticket:242
    867865            vertex_attributes = fit_to_mesh(filename,
    868                                             mesh=self.domain
     866                                            mesh=self.domain.mesh
    869867                                            alpha=alpha,
    870868                                            attribute_name=attribute_name,
     
    875873            # This variant will cause Mesh object to be recreated
    876874            # in fit_to_mesh thus doubling up on the neighbour structure
     875            # FIXME(Ole): This is now obsolete 19 Jan 2009.
    877876            nodes = self.domain.get_nodes(absolute=True)
    878877            triangles = self.domain.get_triangles()     
  • anuga_validation/okushiri_2005/test_caching_of_set_quantity.py

    r5857 r6196  
    1919mesh before running this script.
    2020
     21
    2122"""
     23# NOTE: Cache should be cleared before running this script
     24
    2225
    2326# Module imports
Note: See TracChangeset for help on using the changeset viewer.