Changeset 5741 for anuga_work/development/anuga_1d/quantity.py
 Timestamp:
 Sep 5, 2008, 9:16:45 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_work/development/anuga_1d/quantity.py
r5738 r5741 861 861 #backup_centroid_values(self) 862 862 N = self.domain.number_of_elements 863 for i in range( self.N):864 quantity.centroid_backup_values[i] = quantity.centroid_values[i]863 for i in range(N): 864 self.centroid_backup_values[i] = self.centroid_values[i] 865 865 866 866 def saxpy_centroid_values(self,a,b): … … 869 869 #saxpy_centroid_values(self,a,b) 870 870 N = self.domain.number_of_elements 871 for i in range( self.N):872 quantity.centroid_backup_values[i] = a*quantity.centroid_values[i] + b*quantity.centroid_backup_values[i]871 for i in range(N): 872 self.centroid_backup_values[i] = a*self.centroid_values[i] + b*self.centroid_backup_values[i] 873 873 874 874 class Conserved_quantity(Quantity):
Note: See TracChangeset
for help on using the changeset viewer.