Changeset 5522


Ignore:
Timestamp:
Jul 17, 2008, 11:13:04 PM (16 years ago)
Author:
ole
Message:

Comments and cleanup

File:
1 edited

Legend:

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

    r5521 r5522  
    376376        # use existing code after that.
    377377       
    378         # Perhaps deprecate 'centroids' as a location option. It is really just a
    379         # first order version of what is currently called vertices 
    380        
    381378        if polygon is not None:
    382379            if indices is not None:
     
    428425            msg = 'edges has been deprecated as valid location'
    429426            raise Exception, msg
    430            
    431427           
    432428        if location not in ['vertices', 'centroids', 'unique vertices']:
     
    623619                assert values.shape[0] == indices.shape[0], msg
    624620
    625                 #Brute force
     621                # Brute force
    626622                for i in range(len(indices)):
    627623                    self.centroid_values[indices[i]] = values[i]
    628 
    629         #elif location == 'edges':
    630         #    # FIXME (Ole): No mention of indices here. However, I don't
    631         #    # think we ever need to set values at edges anyway
    632         #    assert len(values.shape) == 2, 'Values array must be 2d'
    633         #
    634         #    msg = 'Number of values must match number of elements'
    635         #    assert values.shape[0] == N, msg
    636         #
    637         #       msg = 'Array must be N x 3'
    638         #    assert values.shape[1] == 3, msg
    639         #
    640         #     self.edge_values = values
    641624
    642625        elif location == 'unique vertices':
Note: See TracChangeset for help on using the changeset viewer.