Ignore:
Timestamp:
Jun 11, 2010, 7:46:04 PM (13 years ago)
Author:
steve
Message:

anuga_1d works with numeric on 64bit machine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anuga_1d/quantity.py

    r7818 r7825  
    237237    def set_values_from_constant(self,numeric):
    238238
    239         self.vertex_values[:]   = numeric
    240         self.centroid_values[:] = numeric
     239        self.vertex_values[:,:]   = numeric
     240        self.centroid_values[:,] = numeric
    241241
    242242
    243243    def set_values_from_array(self,numeric):
    244244
    245         self.vertex_values[:]   = numeric
     245        self.vertex_values[:,:]   = numeric
    246246        self.interpolate()
    247247
     
    249249    def set_values_from_quantity(self,quantity):
    250250
    251         self.vertex_values[:]   = quantity.vertex_values
    252         self.centroid_values[:] = quantity.centroid_values
     251        self.vertex_values[:,:]   = quantity.vertex_values
     252        self.centroid_values[:,] = quantity.centroid_values
    253253
    254254    def set_values_from_function(self,function):
    255255
    256         self.vertex_values[:]   = map(function, self.domain.vertices)
    257         self.centroid_values[:] = map(function, self.domain.centroids)
     256        self.vertex_values[:,:]   = map(function, self.domain.vertices)
     257        self.centroid_values[:,] = map(function, self.domain.centroids)
    258258
    259259
     
    10971097        #backup_centroid_values(self)
    10981098
    1099         self.centroid_backup_values[:] = (self.centroid_values).astype('f')
     1099        self.centroid_backup_values[:,] = (self.centroid_values).astype('f')
    11001100
    11011101    def saxpy_centroid_values(self,a,b):
    11021102        # Call correct module function
    11031103        # (either from this module or C-extension)
    1104         self.centroid_values[:] = (a*self.centroid_values + b*self.centroid_backup_values).astype('f')
     1104        self.centroid_values[:,] = (a*self.centroid_values + b*self.centroid_backup_values).astype('f')
    11051105       
    11061106
Note: See TracChangeset for help on using the changeset viewer.