Changeset 3335 for development/pyvolution-1d/quantity.py
- Timestamp:
- Jul 14, 2006, 2:11:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/pyvolution-1d/quantity.py
r3322 r3335 134 134 Default is "vertices" 135 135 """ 136 137 print "In set_function value"138 print self.domain.vertices139 136 140 137 if location == 'centroids': 141 142 print "In set at centroid" 138 143 139 P = self.domain.centroids 144 140 self.set_values(f(P), location) … … 146 142 #Vertices 147 143 P = self.domain.get_vertices() 148 149 print "P" 150 print P 151 print P[:,0] 152 print f(P[:,0]) 153 154 print P[:,1] 155 print f(P[:,1]) 144 156 145 for i in range(2): 157 self.vertex_values[:,i] = f(P[:,i]) 158 159 160 161 162 print "In set at vertices" 163 print self.vertex_values 164 165 print "Out set_function value" 166 print self.domain.vertices 167 146 self.vertex_values[:,i] = f(P[:,i]) 168 147 169 148 def set_array_values(self, values, location='vertices'): … … 564 543 vertex values are updated 565 544 """ 566 545 print "in Q.limit" 567 546 from Numeric import zeros, Float 568 547 … … 706 685 print Q2.centroid_values 707 686 print Qc 708 687 raw_input('press_return') 688 709 689 g3 = newLinePlot('plot 3') 710 690 linePlot(g3,Xc,Qc) … … 720 700 raw_input('press return') 721 701 722 723 724 725 726 727
Note: See TracChangeset
for help on using the changeset viewer.