Changeset 7037
 Timestamp:
 May 14, 2009, 2:33:42 PM (11 years ago)
 Location:
 branches/numpy/anuga/abstract_2d_finite_volumes
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

branches/numpy/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
r7035 r7037 490 490 # only part of mesh boundary is actually used with a given 491 491 # file boundary sww file. 492 if hasattr(self.F, 'indices_outside_mesh') and493 len(self.F.indices_outside_mesh) > 0:492 if (hasattr(self.F, 'indices_outside_mesh') and 493 len(self.F.indices_outside_mesh)) > 0: 494 494 msg = 'WARNING: File_boundary has points outside the mesh ' 495 495 msg += 'given in %s. ' % filename 
branches/numpy/anuga/abstract_2d_finite_volumes/quantity.py
r7035 r7037 461 461 msg = 'Indices must be a list, array or None' 462 462 #assert (indices is None 463 assert isinstance(indices, (None, list, num.ndarray)) ), msg463 assert isinstance(indices, (None, list, num.ndarray)), msg 464 464 465 465 # Determine which 'set_values_from_...' to use
Note: See TracChangeset
for help on using the changeset viewer.