Ignore:
Timestamp:
Mar 19, 2009, 1:43:34 PM (15 years ago)
Author:
rwilson
Message:

Merged trunk into numpy, all tests and validations work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/abstract_2d_finite_volumes/quantity.py

    r6533 r6553  
    883883
    884884           
    885         # FIXME(Ole): I noticed a couple of examples where this caused
    886         # a crash in fittng, so disabled it until I can investigate further
    887         # Sorry. 23 Jan 2009. Logged as ticket:314
    888         if False:
     885        if True:
    889886            # Use mesh as defined by domain
    890887            # This used to cause problems for caching due to quantities
    891888            # changing, but it now works using the appropriate Mesh object.
    892             # This should close ticket:242
     889            # This addressed ticket:242 and was made to work when bug
     890            # in ticket:314 was fixed 18 March 2009.
    893891            vertex_attributes = fit_to_mesh(filename,
    894892                                            mesh=self.domain.mesh,
     
    901899            # This variant will cause Mesh object to be recreated
    902900            # in fit_to_mesh thus doubling up on the neighbour structure
    903             # FIXME(Ole): This is now obsolete 19 Jan 2009.
     901            # FIXME(Ole): This is now obsolete 19 Jan 2009 except for bug
     902            # (ticket:314) which was fixed 18 March 2009.
    904903            nodes = self.domain.get_nodes(absolute=True)
    905904            triangles = self.domain.get_triangles()
     
    11871186        import types
    11881187
    1189         assert type(indices) in [types.ListType, types.NoneType,
    1190                                  num.ndarray], \
    1191                    'Indices must be a list or None'     #??#
     1188        msg = 'Indices must be a list or None'
     1189        assert indices is None or isinstance(indices, (list, num.ndarray)), msg
     1190#        assert type(indices) in [types.ListType, types.NoneType,
     1191#                                 num.ndarray], \
     1192#                   'Indices must be a list or None'     #??#
    11921193
    11931194        if location == 'centroids':
Note: See TracChangeset for help on using the changeset viewer.